Skip to content

Commit

Permalink
v3.32.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alangpierce committed Apr 9, 2023
1 parent 2fafe71 commit 7284b37
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 12 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# 3.32.0 (2023-04-08)

* Improve source map quality by adding column information. This fixes several
source map use cases, such as Jest inline snapshots, source map composition,
and some debugger features. ([#759]) (Emily Marigold Klassen)
* Unfortunately, this change comes at some performance cost. Previously, the
slowdown from enabling source maps was about 10%, and now it is about 30%.
In most cases, the more detailed source maps are probably still preferable,
so for configuration simplicity, there is currently no option to switch
back to source maps without column information. If you would like to still
use the faster but less accurate implementation, feel free to file an issue
to request a new config option, or create the source map yourself in
wrapper code by copying the
[original simple implementation](https://github.com/alangpierce/sucrase/blob/9b20ea57aa95d0926fcb560f1500f984d598aa00/src/computeSourceMap.ts).

# 3.31.0 (2023-03-26)

* Add option to recognize and preserve JSX syntax. ([#788])
Expand Down Expand Up @@ -503,6 +518,7 @@
[#740]: https://github.com/alangpierce/sucrase/pull/740
[#742]: https://github.com/alangpierce/sucrase/pull/742
[#746]: https://github.com/alangpierce/sucrase/pull/746
[#759]: https://github.com/alangpierce/sucrase/pull/759
[#766]: https://github.com/alangpierce/sucrase/pull/766
[#769]: https://github.com/alangpierce/sucrase/pull/769
[#785]: https://github.com/alangpierce/sucrase/pull/785
Expand Down
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.31.0",
"version": "3.32.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 @@ -65,7 +65,7 @@
"mocha": "^10.0.0",
"nyc": "^15.1.0",
"prettier": "^2.6.2",
"sucrase": "^3.31.0",
"sucrase": "^3.32.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.31.0";
return "3.32.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 @@ -36,7 +36,7 @@
"react-monaco-editor": "^0.48.0",
"react-virtualized-auto-sizer": "^1.0.6",
"style-loader": "^1.0.0",
"sucrase": "^3.31.0",
"sucrase": "^3.32.0",
"typescript": "^4.7.4",
"url-loader": "^2.2.0",
"webpack": "^5.73.0",
Expand Down
9 changes: 5 additions & 4 deletions website/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5760,11 +5760,12 @@ style-loader@^1.0.0:
loader-utils "^2.0.0"
schema-utils "^2.7.0"

sucrase@^3.31.0:
version "3.31.0"
resolved "https://registry.yarnpkg.com/sucrase/-/sucrase-3.31.0.tgz#daae4fd458167c5d4ba1cce6aef57b988b417b33"
integrity sha512-6QsHnkqyVEzYcaiHsOKkzOtOgdJcb8i54x6AV2hDwyZcY9ZyykGZVw6L/YN98xC0evwTP6utsWWrKRaa8QlfEQ==
sucrase@^3.32.0:
version "3.32.0"
resolved "https://registry.yarnpkg.com/sucrase/-/sucrase-3.32.0.tgz#c4a95e0f1e18b6847127258a75cf360bc568d4a7"
integrity sha512-ydQOU34rpSyj2TGyz4D2p8rbktIOZ8QY9s+DGLvFU1i5pWJE8vkpruCjGCMHsdXwnD7JDcS+noSwM/a7zyNFDQ==
dependencies:
"@jridgewell/gen-mapping" "^0.3.2"
commander "^4.0.0"
glob "7.1.6"
lines-and-columns "^1.1.6"
Expand Down
9 changes: 5 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2870,11 +2870,12 @@ stubs@^3.0.0:
resolved "https://registry.yarnpkg.com/stubs/-/stubs-3.0.0.tgz#e8d2ba1fa9c90570303c030b6900f7d5f89abe5b"
integrity sha512-PdHt7hHUJKxvTCgbKX9C1V/ftOcjJQgz8BZwNfV5c4B6dcGqlpelTbJ999jBGZ2jYiPAwcX5dP6oBwVlBlUbxw==

sucrase@^3.31.0:
version "3.31.0"
resolved "https://registry.yarnpkg.com/sucrase/-/sucrase-3.31.0.tgz#daae4fd458167c5d4ba1cce6aef57b988b417b33"
integrity sha512-6QsHnkqyVEzYcaiHsOKkzOtOgdJcb8i54x6AV2hDwyZcY9ZyykGZVw6L/YN98xC0evwTP6utsWWrKRaa8QlfEQ==
sucrase@^3.32.0:
version "3.32.0"
resolved "https://registry.yarnpkg.com/sucrase/-/sucrase-3.32.0.tgz#c4a95e0f1e18b6847127258a75cf360bc568d4a7"
integrity sha512-ydQOU34rpSyj2TGyz4D2p8rbktIOZ8QY9s+DGLvFU1i5pWJE8vkpruCjGCMHsdXwnD7JDcS+noSwM/a7zyNFDQ==
dependencies:
"@jridgewell/gen-mapping" "^0.3.2"
commander "^4.0.0"
glob "7.1.6"
lines-and-columns "^1.1.6"
Expand Down

0 comments on commit 7284b37

Please sign in to comment.