Releases: jaydenseric/babel-plugin-syntax-highlight
Releases · jaydenseric/babel-plugin-syntax-highlight
Release list
Version 4.0.0
Major
- 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
mainfield. - Removed
./packagefrom the packageexportsfield; the fullpackage.jsonfilename must be used in arequirepath. - Renamed the
index.jsmodule tobabelPluginSyntaxHighlight.jsand added it to the packageexportsfield 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
typesscript. - Various type safety improvements.
- Guard against the edge case where the specified Prism.js language name is the name of one of the
Prism.languagesmethods, 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.errorRecoveryenabled. - Updated GitHub Actions CI config:
- No longer run tests with Windows.
- Run tests with Node.js v14, v16, v18.
- Updated
actions/checkoutto v3. - Updated
actions/setup-nodeto v3.
- Configured Prettier option
singleQuoteto the default,false. - Updated tests:
- Use the
@babel/corefunctiontransformAsyncinstead oftransform. - Use a new
snapshot-assertiondev dependency to snapshot test error messages.
- Use the
- Added a
license.mdMIT License file. - Revamped the readme:
- Removed the badges.
- Changed headings.
- Added a “Requirements” section.
- Added information about TypeScript config and optimal JavaScript module design.
- Added an “Exports” section.
Version 3.0.0
Major
- Updated Node.js version support to
^12.20 || >= 14.13. - Updated dev dependencies, some of which require newer Node.js versions than were previously supported.
- Added a package
exportsfield. - Added a package
sideEffectsfield. - The tests are now ESM in an
.mjsfile instead of CJS in a.jsfile.
Patch
- Updated dev dependencies.
- Updated GitHub Actions CI config:
- Also run on pull request.
- Updated
actions/checkoutto v2. - Updated
actions/setup-nodeto v2. - Run with Node.js v12, v14, v15, v16.
- Use the simpler
npm install-testcommand. - Don’t specify the
CIenvironment variable as it’s set by default.
- Updated the package scripts:
- Simpler JSDoc related scripts now that
jsdoc-mdv10 automatically generates a Prettier formatted readme. - Added a
test:jsdocscript that checks the readme API docs are up to date with the source JSDoc. - Simpler
test:prettierscript arguments.
- Simpler JSDoc related scripts now that
- Configured Prettier option
semito the default,true. - Removed
npm-debug.logfrom the.gitignorefile as npm v4.2.0+ doesn’t create it in the current working directory. - Updated the EditorConfig.
- Removed the readme “Support” section.
- Added the
.jsfile extension to aprismjsrequirepath. - Always use regex
umode. - Readme tweaks.
Version 2.1.0
Minor
- Setup GitHub Sponsors funding:
- Added
.github/funding.ymlto display a sponsor button in GitHub. - Added a
package.jsonfundingfield to enable npm CLI funding features.
- Added
Patch
- Updated dev dependencies.
- Removed the now redundant
eslint-plugin-import-order-alphabeticaldev dependency. - Use
coverage-nodefor test code coverage. - Use strict mode for scripts.
- Renamed the
test:unitsscript totest:api. - Use double quotes around the
test:prettierscript glob for Windows support. - Added a
.gitattributesfile to enforceLFline endings in a Windows environment. - Test Node.js v13 in CI.
- Prettier ignore
package.json. - Comment typo fix.
- Renamed a variable in tests.
- Added more tests.
Version 2.0.1
Patch
- Updated dev dependencies.
- Removed now redundant
eslint-disable-next-line no-consolecomments. - Fixed
${not being escaped as\${. - Use
test-directorfor tests. - Moved the readme “Support” section to the end.
Version 2.0.0
Major
- Changed the API from importing a template literal tag, to leading an untagged template literal with a comment that specifies the Prism.js language.
- Removed the now redundant
moduleSpecifierBabel plugin option. - Syntax highlighted template literals are now replaced with another template literal, instead of a string.
Patch
- Updated dev dependencies.
- Updated package description.
- Removed the readme “Todo” section. It’s better to use GitHub issues.
- Aesthetic enhancements to the
TestManagerutility class for managing tests. - Test that Babel syntax errors have pretty source location info.