Skip to content

Commit

Permalink
🐳 chore: Update version for release
Browse files Browse the repository at this point in the history
  • Loading branch information
caoccao committed Nov 3, 2024
1 parent b77550a commit 7c3d6b4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,24 @@
<dependency>
<groupId>com.caoccao.javet</groupId>
<artifactId>swc4j</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</dependency>
```

```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
Expand Down
8 changes: 8 additions & 0 deletions docs/transpile.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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.
2 changes: 1 addition & 1 deletion scripts/ts/change_swc4j_version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,7 @@ public JavetSanitizerOptions setReservedIdentifierMatcher(Function<String, Boole
* Sets shebang enabled.
*
* @param shebangEnabled the shebang enabled
* @return the shebang enabled
* @since 0.8.0
*/
public JavetSanitizerOptions setShebangEnabled(boolean shebangEnabled) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public class Swc4jTranspileOutput extends Swc4jParseOutput {
* @param sourceMap the source map
* @param sourceText the source text
* @param tokens the tokens
* @param comments the comments
* @since 0.1.0
*/
@Jni2RustMethod
Expand Down

0 comments on commit 7c3d6b4

Please sign in to comment.