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

[v4] Drop EoL Node.js support #359

Merged
merged 8 commits into from
Aug 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,29 +104,28 @@ jobs:
steps:
- audit

test-node14:
test-node18:
executor:
name: node
version: '14.21'
version: '18.20'
steps:
- prepare:
force: true
- prepare
- lint
- test

test-node16:
test-node20:
executor:
name: node
version: '16.20'
version: '20.17.0' # Specify LTS version for development
steps:
- prepare:
force: true
- prepare
- lint
- test

test-node18:
test-node22:
executor:
name: node
version: '18.18.1' # Specify LTS version for development
version: '22.7'
steps:
- prepare
- lint
Expand All @@ -136,12 +135,12 @@ workflows:
test:
jobs:
- audit
- test-node14:
- test-node18:
requires:
- audit
- test-node16:
- test-node20:
requires:
- audit
- test-node18:
- test-node22:
requires:
- audit
2 changes: 1 addition & 1 deletion .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
github-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: marp-team/actions@v1
with:
task: release
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.18.2
20.17.0
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

## [Unreleased]

### Breaking

- Drop support against end-of-lifed Node.js versions (v16 and earlier) ([#359](https://github.com/marp-team/marp-core/pull/359))

### Changed

- Upgrade development Node.js to v18 LTS ([#359](https://github.com/marp-team/marp-core/pull/359))

## v3.9.0 - 2023-10-15

### Added
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"browser.d.ts"
],
"engines": {
"node": "^12.20 || ^14.13.1 || >=16"
"node": ">=18"
},
"scripts": {
"build": "yarn -s clean && rollup -c",
Expand Down Expand Up @@ -117,8 +117,8 @@
"dependencies": {
"@marp-team/marpit": "^2.6.1",
"@marp-team/marpit-svg-polyfill": "^2.1.0",
"highlight.js": "11.8.0",
"katex": "^0.16.9",
"highlight.js": "^11.9.0",
"katex": "^0.16.11",
"mathjax-full": "^3.2.2",
"postcss": "^8.4.31",
"postcss-selector-parser": "^6.0.13",
Expand Down
40 changes: 20 additions & 20 deletions test/__snapshots__/marp.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@

exports[`Marp math option with KaTeX injects KaTeX css with replacing web font URL to CDN: katex-css-cdn 1`] = `
[
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_AMS-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_AMS-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_AMS-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Caligraphic-Bold.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Caligraphic-Bold.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Caligraphic-Bold.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Caligraphic-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Caligraphic-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Caligraphic-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Fraktur-Bold.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Fraktur-Bold.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Fraktur-Bold.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Fraktur-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Fraktur-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Fraktur-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Main-Bold.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Main-Bold.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Main-Bold.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Main-BoldItalic.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Main-BoldItalic.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Main-BoldItalic.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Main-Italic.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Main-Italic.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Main-Italic.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Main-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Main-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Main-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Math-BoldItalic.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Math-BoldItalic.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Math-BoldItalic.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Math-Italic.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Math-Italic.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Math-Italic.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_SansSerif-Bold.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_SansSerif-Bold.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_SansSerif-Bold.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_SansSerif-Italic.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_SansSerif-Italic.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_SansSerif-Italic.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_SansSerif-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_SansSerif-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_SansSerif-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Script-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Script-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Script-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Size1-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Size1-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Size1-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Size2-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Size2-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Size2-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Size3-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Size3-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Size3-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Size4-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Size4-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Size4-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Typewriter-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Typewriter-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].9/dist/fonts/KaTeX_Typewriter-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_AMS-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_AMS-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_AMS-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Caligraphic-Bold.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Caligraphic-Bold.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Caligraphic-Bold.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Caligraphic-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Caligraphic-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Caligraphic-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Fraktur-Bold.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Fraktur-Bold.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Fraktur-Bold.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Fraktur-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Fraktur-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Fraktur-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Main-Bold.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Main-Bold.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Main-Bold.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Main-BoldItalic.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Main-BoldItalic.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Main-BoldItalic.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Main-Italic.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Main-Italic.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Main-Italic.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Main-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Main-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Main-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Math-BoldItalic.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Math-BoldItalic.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Math-BoldItalic.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Math-Italic.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Math-Italic.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Math-Italic.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_SansSerif-Bold.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_SansSerif-Bold.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_SansSerif-Bold.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_SansSerif-Italic.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_SansSerif-Italic.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_SansSerif-Italic.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_SansSerif-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_SansSerif-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_SansSerif-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Script-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Script-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Script-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Size1-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Size1-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Size1-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Size2-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Size2-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Size2-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Size3-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Size3-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Size3-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Size4-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Size4-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Size4-Regular.ttf') format("truetype")",
"url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Typewriter-Regular.woff2') format("woff2"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Typewriter-Regular.woff') format("woff"),url('https://cdn.jsdelivr.net/npm/[email protected].11/dist/fonts/KaTeX_Typewriter-Regular.ttf') format("truetype")",
]
`;

Expand Down
2 changes: 1 addition & 1 deletion test/marp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ function matchwo(a,b)

expect(instance.highlightjs.highlight).toBeInstanceOf(Function)
expect(instance.highlightjs.versionString).toMatchInlineSnapshot(
`"11.8.0"`,
`"11.9.0"`,
)
})

Expand Down
Loading