Skip to content

Commit

Permalink
Upgrade dev dependencies + added nodejs 22 LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
liborm85 committed Dec 24, 2024
1 parent 93c6af7 commit 7527b7a
Show file tree
Hide file tree
Showing 6 changed files with 1,047 additions and 2,113 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x]
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 0 additions & 3 deletions .prettierrc

This file was deleted.

20 changes: 20 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import globals from "globals";
import js from "@eslint/js";

export default [
js.configs.recommended,
{
languageOptions: {
globals: globals.node,
sourceType: "module",
},
},
{
files: ["tests/**/*.js"],
languageOptions: {
globals: {
...globals.jest,
},
}
},
];
40 changes: 21 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,30 @@
},
"bugs": "https://github.com/foliojs/pdfkit/issues",
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/plugin-external-helpers": "^7.10.4",
"@babel/preset-env": "^7.11.5",
"babel-jest": "^26.3.0",
"blob-stream": "^0.1.2",
"@babel/core": "^7.26.0",
"@babel/plugin-external-helpers": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@eslint/js": "^9.17.0",
"@rollup/plugin-babel": "^6.0.4",
"babel-jest": "^29.7.0",
"blob-stream": "^0.1.3",
"brace": "^0.11.1",
"brfs": "~2.0.2",
"browserify": "^16.5.0",
"canvas": "^2.11.2",
"codemirror": "~5.49.2",
"eslint": "^7.8.1",
"gh-pages": "^3.1.0",
"jest": "^29.4.3",
"jest-environment-jsdom": "^29.4.3",
"jest-image-snapshot": "^6.1.0",
"browserify": "^17.0.1",
"canvas": "^3.0.0",
"codemirror": "~5.65.18",
"eslint": "^9.17.0",
"gh-pages": "^6.2.0",
"globals": "^15.14.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-image-snapshot": "^6.4.0",
"markdown": "~0.5.0",
"pdfjs-dist": "^2.14.305",
"prettier": "1.19.1",
"pug": "^2.0.4",
"rollup": "^1.27.0",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-cpy": "^2.0.1"
"prettier": "3.4.2",
"pug": "^3.0.3",
"rollup": "^2.79.2",
"rollup-plugin-copy": "^3.5.0"
},
"dependencies": {
"crypto-js": "^4.2.0",
Expand Down Expand Up @@ -88,4 +90,4 @@
"<rootDir>/tests/unit/setupTests.js"
]
}
}
}
12 changes: 8 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pkg from './package.json';
import babel from 'rollup-plugin-babel';
import copy from 'rollup-plugin-cpy';
import { babel } from '@rollup/plugin-babel';
import copy from 'rollup-plugin-copy';

const external = [
'stream',
Expand Down Expand Up @@ -35,6 +35,7 @@ export default [
},
plugins: [
babel({
babelHelpers: 'bundled',
babelrc: false,
presets: [
[
Expand All @@ -49,8 +50,9 @@ export default [
]
}),
copy({
files: ['lib/font/data/*.afm', 'lib/mixins/data/*.icc'],
dest: 'js/data'
targets: [
{ src: ['lib/font/data/*.afm', 'lib/mixins/data/*.icc'], dest: 'js/data' },
]
})
]
},
Expand All @@ -66,6 +68,7 @@ export default [
},
plugins: [
babel({
babelHelpers: 'bundled',
babelrc: false,
presets: [
[
Expand All @@ -92,6 +95,7 @@ export default [
},
plugins: [
babel({
babelHelpers: 'bundled',
babelrc: false,
presets: [
[
Expand Down
Loading

0 comments on commit 7527b7a

Please sign in to comment.