Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.7.0 #5412

Merged
merged 2 commits into from
Apr 24, 2022
Merged

2.7.0 #5412

merged 2 commits into from
Apr 24, 2022

Conversation

GeoffreyBooth
Copy link
Collaborator

2.7.0 release. Changelog:

  • The import assertions syntax is now supported. This allows statements like export { version } from './package.json' assert { type: 'json' } or expressions like import('./calendar.json', { assert { type: 'json' } }). Import assertions #5391
  • CoffeeScript no longer always patches Node’s error stack traces. This patching, where the line and column numbers are adjusted to match the source CoffeeScript rather than the generated JavaScript, caused conflicts with other libraries and is unnecessary when Node’s new --enable-source-maps flag is passed. The patching will now occur only when --enable-source-maps is not set, no other library has already patched the stack traces, and require('coffeescript/register') is used. The patching can be enabled explicitly via require('coffeescript').patchStackTrace() or import { patchStackTrace } from 'coffeescript'; patchStackTrace(). Don’t patch Error.prepareStackTrace if --enable-source-maps is used. #5403
  • Bugfix for an issue where block (triple-quoted) strings weren’t getting transpiled correctly into a JSX expression container wrapping the template literal (such as <div a={`...`} />). Handle triple-quoted JSX attribute values #5353
  • Bugfixes for line continuations not behaving as expected for a nonempty first line of an explicit [ array or { object literal. Fix continuing first line of explicit [/{ literal #5397

@GeoffreyBooth GeoffreyBooth merged commit 519248f into jashkenas:main Apr 24, 2022
@GeoffreyBooth GeoffreyBooth deleted the 2.7.0 branch April 24, 2022 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant