diff --git a/README.md b/README.md index 2de7a46f..c16498d7 100644 --- a/README.md +++ b/README.md @@ -47,24 +47,24 @@ com.caoccao.javet swc4j - 1.1.0 + 1.2.0 ``` ```kotlin // Gradle Kotlin DSL // Linux + MacOS + Windows -implementation("com.caoccao.javet:swc4j:1.1.0") +implementation("com.caoccao.javet:swc4j:1.2.0") // Android -implementation("com.caoccao.javet:swc4j-android:1.1.0") +implementation("com.caoccao.javet:swc4j-android:1.2.0") ``` ```groovy // Gradle Groovy DSL // Linux + MacOS + Windows -implementation 'com.caoccao.javet:swc4j:1.1.0' +implementation 'com.caoccao.javet:swc4j:1.2.0' // Android -implementation 'com.caoccao.javet:swc4j-android:1.1.0' +implementation 'com.caoccao.javet:swc4j-android:1.2.0' ``` ### Transpile diff --git a/docs/transpile.md b/docs/transpile.md index f2d90c62..8c805eac 100644 --- a/docs/transpile.md +++ b/docs/transpile.md @@ -62,6 +62,10 @@ When transforming JSX, what value should be used for the JSX fragment factory. D The string module specifier to implicitly import JSX factories from when transpiling JSX. +### Module Kind + +The kind of module being transpiled. Defaults to being derived from the media type of the parsed source. + ### Precompile JSX Should JSX be precompiled into static strings that need to be concatenated with dynamic content. Defaults to `false`, mutually exclusive with `transform_jsx`. @@ -89,3 +93,7 @@ TypeScript experimental decorators. ### Var Decl Imports Should import declarations be transformed to variable declarations using a dynamic import. This is useful for import and export declaration support in script contexts such as the Deno REPL. Defaults to `false`. + +### Verbatim Module Syntax + +`true` changes type stripping behavior so that _only_ `type` imports are stripped. diff --git a/scripts/ts/change_swc4j_version.ts b/scripts/ts/change_swc4j_version.ts index 75365a8d..fb818f15 100644 --- a/scripts/ts/change_swc4j_version.ts +++ b/scripts/ts/change_swc4j_version.ts @@ -113,5 +113,5 @@ class ChangeSwc4jVersion { } } -const changeSwc4jVersion = new ChangeSwc4jVersion('1.1.0', '1.2.0'); +const changeSwc4jVersion = new ChangeSwc4jVersion('1.2.0', '1.2.0'); changeSwc4jVersion.change() diff --git a/src/main/java/com/caoccao/javet/sanitizer/options/JavetSanitizerOptions.java b/src/main/java/com/caoccao/javet/sanitizer/options/JavetSanitizerOptions.java index 0ba50f47..43e350e7 100644 --- a/src/main/java/com/caoccao/javet/sanitizer/options/JavetSanitizerOptions.java +++ b/src/main/java/com/caoccao/javet/sanitizer/options/JavetSanitizerOptions.java @@ -747,6 +747,7 @@ public JavetSanitizerOptions setReservedIdentifierMatcher(Function