You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated Node.js support to ^14.17.0 || ^16.0.0 || >= 18.0.0.
Updated dev dependencies, some of which require newer Node.js versions than previously supported.
Removed the package main field.
Removed ./package from the package exports field; the full package.json filename must be used in a require path.
Renamed the index.js module to babelPluginSyntaxHighlight.js and added it to the package exports field so it can be deep imported.
Implemented TypeScript types via JSDoc comments.
Use the node: URL scheme for Node.js builtin module imports in tests.
Patch
Updated dependencies.
Simplified dev dependencies and config for ESLint.
Simplified package scripts.
Check TypeScript types via a new package types script.
Various type safety improvements.
Guard against the edge case where the specified Prism.js language name is the name of one of the Prism.languages methods, e.g. extend.
Gracefully error if a template literal string can’t be cooked, e.g. due to an invalid escape sequence with the Babel transform option parserOpts.errorRecovery enabled.
Updated GitHub Actions CI config:
No longer run tests with Windows.
Run tests with Node.js v14, v16, v18.
Updated actions/checkout to v3.
Updated actions/setup-node to v3.
Configured Prettier option singleQuote to the default, false.
Updated tests:
Use the @babel/core function transformAsync instead of transform.
Use a new snapshot-assertion dev dependency to snapshot test error messages.