Skip to content

Commit

Permalink
v3.31.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alangpierce committed Mar 27, 2023
1 parent c81e393 commit 99c4f71
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 12 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# 3.31.0 (2023-03-26)

* Add option to recognize and preserve JSX syntax. ([#788])
* Fix default export interop behavior when using transpiled dynamic `import()` to import a plain CJS module.
For example, if `foo.js` has `module.exports = 1;`, then `await import('foo.js')` will now evaluate to `{default: 1}`
rather than just `1`. Named exports behave the same as before.
This change matches the behavior of Node.js and other transpilers, so it is considered a bug fix rather than
breaking. If you relied on the old behavior, feel free to file an issue and it may be possible to roll back until the
next semver-major release. ([#789], [#790])

# 3.30.0 (2023-03-20)

* Add support for new syntax in TypeScript 5.0:
Expand Down Expand Up @@ -497,3 +507,6 @@
[#769]: https://github.com/alangpierce/sucrase/pull/769
[#785]: https://github.com/alangpierce/sucrase/pull/785
[#786]: https://github.com/alangpierce/sucrase/pull/786
[#788]: https://github.com/alangpierce/sucrase/pull/788
[#789]: https://github.com/alangpierce/sucrase/pull/789
[#790]: https://github.com/alangpierce/sucrase/pull/790
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sucrase",
"version": "3.30.0",
"version": "3.31.0",
"description": "Super-fast alternative to Babel for when you can target modern JS runtimes",
"author": "Alan Pierce <alangpierce@gmail.com>",
"license": "MIT",
Expand Down Expand Up @@ -64,7 +64,7 @@
"mocha": "^10.0.0",
"nyc": "^15.1.0",
"prettier": "^2.6.2",
"sucrase": "^3.30.0",
"sucrase": "^3.31.0",
"test262-harness": "^10.0.0",
"ts-interface-builder": "^0.3.3",
"typescript": "~4.7"
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export type Transform = import("./Options").Transform;

export function getVersion(): string {
/* istanbul ignore next */
return "3.30.0";
return "3.31.0";
}

export function transform(code: string, options: Options): TransformResult {
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"react-monaco-editor": "^0.48.0",
"react-virtualized-auto-sizer": "^1.0.6",
"style-loader": "^1.0.0",
"sucrase": "^3.30.0",
"sucrase": "^3.31.0",
"typescript": "^4.7.4",
"url-loader": "^2.2.0",
"webpack": "^5.73.0",
Expand Down
8 changes: 4 additions & 4 deletions website/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5760,10 +5760,10 @@ style-loader@^1.0.0:
loader-utils "^2.0.0"
schema-utils "^2.7.0"

sucrase@^3.30.0:
version "3.30.0"
resolved "https://registry.yarnpkg.com/sucrase/-/sucrase-3.30.0.tgz#ce8f49152913c70945d65d9e5405d66a399cca8a"
integrity sha512-7d37d3vLF0IeH2dzvHpzDNDxUqpbDHJXTJOAnQ8jvMW04o2Czps6mxtaSnKWpE+hUS/eczqfWPUgQTrazKZPnQ==
sucrase@^3.31.0:
version "3.31.0"
resolved "https://registry.yarnpkg.com/sucrase/-/sucrase-3.31.0.tgz#daae4fd458167c5d4ba1cce6aef57b988b417b33"
integrity sha512-6QsHnkqyVEzYcaiHsOKkzOtOgdJcb8i54x6AV2hDwyZcY9ZyykGZVw6L/YN98xC0evwTP6utsWWrKRaa8QlfEQ==
dependencies:
commander "^4.0.0"
glob "7.1.6"
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2862,10 +2862,10 @@ stubs@^3.0.0:
resolved "https://registry.yarnpkg.com/stubs/-/stubs-3.0.0.tgz#e8d2ba1fa9c90570303c030b6900f7d5f89abe5b"
integrity sha512-PdHt7hHUJKxvTCgbKX9C1V/ftOcjJQgz8BZwNfV5c4B6dcGqlpelTbJ999jBGZ2jYiPAwcX5dP6oBwVlBlUbxw==

sucrase@^3.30.0:
version "3.30.0"
resolved "https://registry.yarnpkg.com/sucrase/-/sucrase-3.30.0.tgz#ce8f49152913c70945d65d9e5405d66a399cca8a"
integrity sha512-7d37d3vLF0IeH2dzvHpzDNDxUqpbDHJXTJOAnQ8jvMW04o2Czps6mxtaSnKWpE+hUS/eczqfWPUgQTrazKZPnQ==
sucrase@^3.31.0:
version "3.31.0"
resolved "https://registry.yarnpkg.com/sucrase/-/sucrase-3.31.0.tgz#daae4fd458167c5d4ba1cce6aef57b988b417b33"
integrity sha512-6QsHnkqyVEzYcaiHsOKkzOtOgdJcb8i54x6AV2hDwyZcY9ZyykGZVw6L/YN98xC0evwTP6utsWWrKRaa8QlfEQ==
dependencies:
commander "^4.0.0"
glob "7.1.6"
Expand Down

0 comments on commit 99c4f71

Please sign in to comment.