Skip to content

Commit

Permalink
Update release notes for 1.7.13 release
Browse files Browse the repository at this point in the history
Update Gradle build so that "./gradlew publish" can work for publishing
to Maven staging repo.
  • Loading branch information
gbrail committed Sep 2, 2020
1 parent 6cc180b commit a3ac11a
Show file tree
Hide file tree
Showing 9 changed files with 138 additions and 103 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Rhino is licensed under the [MPL 2.0](./LICENSE.txt).
<tr><td><a href="https://github.com/mozilla/rhino/releases/tag/Rhino1_7_10_Release">Rhino 1.7.10</a></td><td>April 9, 2018</td></tr>
<tr><td><a href="https://github.com/mozilla/rhino/releases/tag/Rhino1_7_11_Release">Rhino 1.7.11</a></td><td>May 30, 2019</td></tr>
<tr><td><a href="https://github.com/mozilla/rhino/releases/tag/Rhino1_7_12_Release">Rhino 1.7.12</a></td><td>January 13, 2020</td></tr>
<tr><td><a href="https://github.com/mozilla/rhino/releases/tag/Rhino1_7_13_Release">Rhino 1.7.13</a></td><td>September 2, 2020</td></tr>
</table>

[Release Notes](./RELEASE-NOTES.md) for recent releases.
Expand Down
120 changes: 120 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,123 @@
# Rhino 1.7.13
## September 2, 2020

### Script Engine support

Now that Nashorn has been deprecated, a number of poeple have asked about using
Rhino with the standard Java "ScriptEngine" interface. This release supports that.

However, in order to avoid breaking existing code, the script engine is
shipped in a separate JAR. Use the "rhino-engine" jar along with the
standard "rhino" jar to include this feature.

### Generator Support

This release supports generators based on the ES6-standard "function *"
syntaxt.

### Other important changes

This release also includes a number of quality and consistency fixes from five contributors.
As always, check out the [compatibility table](http://mozilla.github.io/rhino/compat/engines.html)
to see where Rhino stands today.

Gregory Brail (18):
* Start on 1.7.13.
* Add a build config for CircleCi.
* Upgrade Gradle version to 6.5.
* Update max workers.
* Add support for ES6 generators.
* Make "GeneratorFunction" pattern work in interpreted mode.
* Complete implementation of GeneratorFunction.
* Diagnostics to discover test timeouts.
* Implement standard Java ScriptEngine
* Change MozillaSuiteBenchmark to not fork threads.
* Try to improve performance of MozillaSuiteTest
* Disable some very slow tests
* Start using JMH for benchmarks.
* Many small fixes suggested by FindBugs and other linters
* Turn off all the Mozilla tests that use the "BigO" function.
* Move "BodyCodegen" into a file with the appropriate name.
* Add feature flag for changes to Function.__proto__
* Make __proto__ more closely match the spec

Karl Tauber (2):
* Debugger fixes for FlatLaf (https://github.com/JFormDesigner/FlatLaf): - make renderer tree row height same as table row height - increase monospaced font size in script source and evaluation view if L&F uses larger font - remove renderer tree border if L&F sets one (built in L&F do not)
* Debugger: fix NPE in variables view when expanding "CallSite"

Sylvain Jermini (7):
* improve java.util.{List,Map} interop
* travis: switch from trusty to xenial + set explicit -Xss in tests
* try to fix circle, increase Xss
* Fix failing string.trim.doctest in java11.
* NativeDate: DateFormat, use explicit pattern, has the default has changed from java8 to 9. See https://stackoverflow.com/q/53317365
* add java11 to travis test matrix
* various fixes so the javadoc linter is happy

hjx胡继续 (2):
* Add String.fromCodePoint()
* fromCharCode optimize

ian4hu (5):
* Add String.prototype.trimStart String.prototype.strimEnd
* style: code style
* test: string test with hex code instead of literal
* remove unused StringBuilder
* fix tests in test262/built-ins/String/fromCodePoint/*

leela52452 (1):
* fix OWASP Cheat Sheet markdown format

RBRi (48):
* switch value and done
* make some method protected to support rhino-external implementations
* NativeArrayBuffer slice() length is 2
* fix String.indexOf and String.includes when searching for an empty st… (#747)
* fix string.split with limit 0
* fix for issue #665 (maybe we have to adjust the version switch to version 1_6)
* fix for the recursion detection when converting an array into a string
* fix #670
* add testcase for issue #656
* Symbol.length is 0 fixes #648
* add testcase for issue #651
* fix type o the expected value
* improve seal() and freeze() processing; fixes #174
* An error should be thrown when defining a property for a read-only variable in strict mode fixes 573
* code cleanup
* Do not save/share an instance of NativeArrayBuffer in a static variable. This introduces really strange side effects, because the instance is available (and changeable) from javascript code. These changes are 'persistent' in a way that starting a fresh rhino instance still uses this changed object.
* various fixes for array calls using this pattern Array.prototype.foo.call(null, ....);
* fix issue #648
* fix Object.getOwnPropertyDescriptor for index properties on native strings
* Function.__proto__ ignores write access
* improved regexp parser based on commit 2164382abe078ea2024b9dff7fe416a78e3a668f from anba
* fix handling of undefined parameter value in String.normalize()
* it should not be possible to change the [[Prototype]] of a non-extensible object; some cleanup
* add version guard
* fix all this-value-not-obj-coercible.js tests for string
* checkstyle fixes
* fix test suite setup
* use the RangeError construction helper
* improved handling of negative ArrayBuffer size fixes #708
* in ES6 TypedArray constructors are only callable via new
* avoid some auto boxing use Double.valueOf instead of new some cleanup try to optimize the code a bit to avoid unnecessary conversations and Double object creation make some methods static
* regular expressions are not functions in the context of string replace fixes #726
* improved regex range handling
* do not inherit strict mode when parsing a function body
* code style fix
* fix wrong start object for getter in Object.assign
* use Undefined.isUndefined()
* String.prototype[Symbol.iterator].call(undefined) has to throw because undefined is not coercible
* enable more test cases
* reduce auto boxing to be able to better control this and avoid boxing if possible
* make a bunch of methods static
* code cleanup
* make the inner class static (this makes also SpotBugs happy)
* Object.setPrototypeOf() arg[0] has to be coercible
* fix one more case
* match
* search
* throw if the lastIndex prop of an regex is readonly

# Rhino 1.7.12
## January 13, 2020

Expand Down
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
id 'idea'
id 'eclipse'
id 'maven-publish'
id 'signing'
id 'jacoco'
id 'distribution'
id 'checkstyle'
Expand Down Expand Up @@ -363,6 +364,13 @@ publishing {
}
}

signing {
useGpgCmd()
sign publishing.publications.rhino
sign publishing.publications.rhinoengine
sign publishing.publications.rhinoruntime
}

spotbugs {
effort = "less"
reportLevel = "medium"
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rootProject.name=rhino
group=org.mozilla
version=1.7.13-SNAPSHOT
version=1.7.13
buildDir=buildGradle
mavenSnapshotRepo=https://oss.sonatype.org/content/repositories/snapshots
mavenReleaseRepo=https://oss.sonatype.org/service/local/staging/deploy/maven
mavenReleaseRepo=https://oss.sonatype.org/service/local/staging/deploy/maven2/
41 changes: 0 additions & 41 deletions maven/maven-pom.xml

This file was deleted.

15 changes: 0 additions & 15 deletions maven/maven-snapshot-deploy.sh

This file was deleted.

37 changes: 0 additions & 37 deletions maven/maven-staging-deploy.sh

This file was deleted.

11 changes: 5 additions & 6 deletions release-steps.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Update version in:
src/manifest
gradle.properties
maven/maven-pom.xml

Paste release notes into RELEASE_NOTES.md:
git shortlog LAST_TAG.. | sed 's/^ /*/'
Expand All @@ -10,16 +9,17 @@ Paste release info into README.md
Copy README into gh-pages
Extract build/*/javadoc.zip to gh-pages/javadoc

Re-run compat-table "engine.js"
Re-run compat-table "rhinoall.sh"
Copy HTML to gh-pages/compat

./gradlew publishToMavenLocal distZip
cd maven
./maven-staging-deploy.sh
./gradlew -Dgradle.user.home=$HOME publish

Go to oss.sonatype.org
Find "org.mozilla" staging repo, close, release, and drop.

./gradlew distZip
Publish that to the GitHub release page

git tag for new release

Update release in GitHub
Expand All @@ -28,7 +28,6 @@ Update release in GitHub
Update to new snapshot version in:
src/manifest
gradle.properties
maven/maven-pom.xml

Update the Homebrew formula. Submit a PR for:
Homebrew/homebrew
Expand Down
4 changes: 2 additions & 2 deletions src/manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Manifest-Version: 1.0
Main-Class: org.mozilla.javascript.tools.shell.Main
Implementation-Version: 1.7.13-SNAPSHOT
Implementation-Title: Mozilla Rhino 1.7.13-SNAPSHOT
Implementation-Version: 1.7.13
Implementation-Title: Mozilla Rhino 1.7.13
Implementation-Vendor: Mozilla Foundation
Implementation-URL: http://www.mozilla.org/rhino

0 comments on commit a3ac11a

Please sign in to comment.