Skip to content

Commit 1f08e25

Browse files
committed
Merge branch 'release/0.18.0'
2 parents 15d3f8f + 13c74f5 commit 1f08e25

File tree

90 files changed

+274
-226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+274
-226
lines changed

.github/workflows/graalvm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
version: ['22.0.0.2', dev]
15+
version: ['22.1.0', dev]
1616
os: [macos-latest, windows-latest, ubuntu-latest]
1717
steps:
1818
- name: Checkout

.github/workflows/java.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
version: [8, 11, 17]
15+
version: [11, 17]
1616
os: [macos-latest, windows-latest, ubuntu-latest]
1717
steps:
1818
- name: Checkout

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8-
## [0.17.1] -
8+
## [0.18.0] -
9+
* Added new module `@vertx/uri-template`
10+
* Force commonjs loader to be synchronized
11+
* Bumped graal to 22.1.0
12+
* Bumped vertx to 4.2.7
13+
* Given that graaljs no longer supports java8, we bump the minor
14+
15+
## [0.17.1] - 2022-03-11
916
* Bump graaljs to 22.0.0.2
1017
* codegen: fix imports on options
1118
* structured clone: fix handling of graal proxy objects

codegen/pom.xml

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,14 @@
44
<parent>
55
<groupId>io.reactiverse</groupId>
66
<artifactId>es4x-parent</artifactId>
7-
<version>0.17.1</version>
7+
<version>0.18.0</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

1111
<modelVersion>4.0.0</modelVersion>
1212

1313
<artifactId>es4x-codegen</artifactId>
14-
<version>0.17.1</version>
15-
16-
<properties>
17-
<tools.jar>${java.home}/../lib/tools.jar</tools.jar>
18-
</properties>
19-
20-
<profiles>
21-
<profile>
22-
<id>tools.jar</id>
23-
<activation>
24-
<file>
25-
<exists>${tools.jar}</exists>
26-
</file>
27-
</activation>
28-
<dependencies>
29-
<dependency>
30-
<groupId>com.sun</groupId>
31-
<artifactId>tools</artifactId>
32-
<version>1.8</version>
33-
<scope>system</scope>
34-
<systemPath>${tools.jar}</systemPath>
35-
<optional>true</optional>
36-
</dependency>
37-
</dependencies>
38-
</profile>
39-
</profiles>
14+
<version>0.18.0</version>
4015

4116
<dependencies>
4217
<dependency>

codegen/src/main/java/io/reactiverse/es4x/codegen/generator/OptionsDTS.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,15 @@ public String render(DataObjectModel model, int index, int size, Map<String, Obj
121121
String superScope = getNPMScope(model.getSuperType().getModule());
122122
if (!selfScope.equals(superScope)) {
123123
TypeInfo referencedType = model.getSuperType();
124-
importType(writer, session, referencedType, referencedType.getSimpleName(), getNPMScope(referencedType.getRaw().getModule()));
124+
String suffix = "";
125+
// take care of the suffixes
126+
if (referencedType.getKind() == ClassKind.ENUM) {
127+
suffix = "/enums";
128+
}
129+
if (referencedType.getKind() == ClassKind.OTHER && referencedType.getDataObject() != null) {
130+
suffix = "/options";
131+
}
132+
importType(writer, session, referencedType, referencedType.getSimpleName(), getNPMScope(referencedType.getRaw().getModule()) + suffix);
125133
imports = true;
126134
}
127135
}

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ npm start # OR yarn start
3535
```
3636

3737
::: tip COMPATIBILITY NOTE
38-
ES4X requires [GraalVM](https://www.graalvm.org) or Java >= 8. If you're not sure which version is installed on your
38+
ES4X requires [GraalVM](https://www.graalvm.org) or Java >= 11. If you're not sure which version is installed on your
3939
system, consider using [jabba](https://github.com/shyiko/jabba).
4040
:::

docs/get-started/install.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Install
22

33
Assuming you’ve already installed [Node.js](https://nodejs.org/), you will need a working JVM. The requirements are
4-
either ([Java](https://adoptopenjdk.net/) or [GraalVM](http://www.graalvm.org/)).
4+
either ([Java](https://adoptium.net/) or [GraalVM](http://www.graalvm.org/)).
55

66
```bash
77
$ java -version
8-
openjdk version "1.8.0_265"
9-
OpenJDK Runtime Environment (build 1.8.0_265-8u265-b01-0ubuntu2~20.04-b01)
10-
OpenJDK 64-Bit Server VM (build 25.265-b01, mixed mode)
8+
openjdk version "11.0.15" 2022-04-19
9+
OpenJDK Runtime Environment (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1)
10+
OpenJDK 64-Bit Server VM (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1, mixed mode)
1111
```
1212

1313
If you see a similar output, this means your system currently has `java` **8**, which is not the best option as it will

es4x/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
<parent>
55
<groupId>io.reactiverse</groupId>
66
<artifactId>es4x-parent</artifactId>
7-
<version>0.17.1</version>
7+
<version>0.18.0</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

1111
<modelVersion>4.0.0</modelVersion>
1212

1313
<artifactId>es4x</artifactId>
14-
<version>0.17.1</version>
14+
<version>0.18.0</version>
1515

1616
<properties>
1717
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

es4x/src/main/java/io/reactiverse/es4x/ESVerticleFactory.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@
1818
import io.reactiverse.es4x.impl.REPLVerticle;
1919
import io.reactiverse.es4x.impl.StructuredClone;
2020
import io.reactiverse.es4x.impl.VertxFileSystem;
21-
import io.vertx.core.Future;
22-
import io.vertx.core.Promise;
23-
import io.vertx.core.Verticle;
24-
import io.vertx.core.Vertx;
21+
import io.vertx.core.*;
22+
import io.vertx.core.impl.ContextInternal;
2523
import io.vertx.core.spi.VerticleFactory;
2624
import org.graalvm.polyglot.Source;
2725
import org.graalvm.polyglot.Value;
@@ -180,8 +178,8 @@ private String mainScript(String fsVerticleName) {
180178
return main;
181179
}
182180

183-
protected final Future<Void> waitFor(Runtime runtime, String callback) {
184-
final Promise<Void> wrapper = Promise.promise();
181+
protected final Future<Void> waitFor(Runtime runtime, ContextInternal context, String callback) {
182+
final Promise<Void> wrapper = context.promise();
185183
try {
186184
if (runtime.emit(callback, wrapper) == 0) {
187185
wrapper.complete();

es4x/src/main/java/io/reactiverse/es4x/Runtime.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public final class Runtime extends EventEmitterImpl {
5757
// override the default load function to allow proper mapping of file for debugging
5858
bindings.putMember("load", new Function<Object, Value>() {
5959
@Override
60-
public Value apply(Object value) {
60+
public synchronized Value apply(Object value) {
6161

6262
try {
6363
final Source source;

0 commit comments

Comments
 (0)