Skip to content

Commit

Permalink
Merge pull request #398 from marp-team/upgrade-dependency
Browse files Browse the repository at this point in the history
Upgrade development Node.js and dependent packages to the latest
  • Loading branch information
yhatt authored Aug 30, 2024
2 parents c481ff8 + 883a6ad commit 2390a42
Show file tree
Hide file tree
Showing 8 changed files with 5,155 additions and 7,317 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
test-node20:
executor:
name: node
version: '20.13.1' # Specify LTS version for development
version: '20.17.0' # Specify LTS version for development
steps:
- prepare
- lint
Expand All @@ -114,7 +114,7 @@ jobs:
test-node22:
executor:
name: node
version: '22.2'
version: '22.7'
steps:
- prepare
- lint
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.13.1
20.17.0
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### Changed

- Upgrade development Node.js and dependent packages to the latest ([#398](https://github.com/marp-team/marpit/issues/398))

## v3.0.0 - 2024-05-17

### Breaking
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import globals from 'globals'

export default [
js.configs.recommended,
// eslintPluginImportX.configs.recommended, // not yet available
eslintPluginImportX.flatConfigs.recommended,
eslintConfigPrettier,
{
languageOptions: {
Expand Down
12,417 changes: 5,126 additions & 7,291 deletions package-lock.json

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,41 +59,41 @@
"watch": "babel src --out-dir lib -w --verbose"
},
"devDependencies": {
"@babel/cli": "^7.24.5",
"@babel/core": "^7.24.5",
"@babel/eslint-parser": "^7.24.5",
"@babel/preset-env": "^7.24.5",
"autoprefixer": "^10.4.19",
"cheerio": "^1.0.0-rc.12",
"@babel/cli": "^7.25.6",
"@babel/core": "^7.25.2",
"@babel/eslint-parser": "^7.25.1",
"@babel/preset-env": "^7.25.4",
"autoprefixer": "^10.4.20",
"cheerio": "^1.0.0",
"chokidar": "^3.6.0",
"clean-jsdoc-theme": "^4.3.0",
"cssnano": "^7.0.1",
"cssnano": "^7.0.5",
"dedent": "^1.5.3",
"docsify-themeable": "^0.9.0",
"eslint": "^9.2.0",
"eslint": "^9.9.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import-x": "^0.5.0",
"globals": "^15.2.0",
"eslint-plugin-import-x": "^4.1.1",
"globals": "^15.9.0",
"jest": "^29.7.0",
"jest-junit": "^16.0.0",
"jsdoc": "^4.0.3",
"npm-check-updates": "^16.14.20",
"npm-run-all2": "^6.2.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.7",
"sass": "1.77.2",
"npm-check-updates": "^17.1.0",
"npm-run-all2": "^6.2.2",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"sass": "1.77.8",
"serve-handler": "^6.1.5",
"stylelint": "^16.5.0",
"stylelint": "^16.9.0",
"stylelint-config-standard-scss": "^13.1.0",
"ws": "^8.17.0"
"ws": "^8.18.0"
},
"dependencies": {
"cssesc": "^3.0.0",
"js-yaml": "^4.1.0",
"lodash.kebabcase": "^4.1.1",
"markdown-it": "^14.1.0",
"markdown-it-front-matter": "^0.2.4",
"postcss": "^8.4.38"
"postcss": "^8.4.41"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions src/markdown/directives/yaml.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @module */
import YAML, { FAILSAFE_SCHEMA } from 'js-yaml'
import { load, FAILSAFE_SCHEMA } from 'js-yaml'
import directives from './directives'

const createPatterns = (keys) => {
Expand All @@ -20,7 +20,7 @@ const yamlSpecialChars = `["'{|>~&*`

function parse(text) {
try {
const obj = YAML.load(text, { schema: FAILSAFE_SCHEMA })
const obj = load(text, { schema: FAILSAFE_SCHEMA })
if (obj === null || typeof obj !== 'object') return false

return obj
Expand Down
3 changes: 1 addition & 2 deletions test/plugin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import markdownIt from 'markdown-it'
import { Marpit } from '../src/index'
import pluginAsDefaultExport from '../src/plugin'
import { marpitPlugin } from '../src/plugin'
import pluginAsDefaultExport, { marpitPlugin } from '../src/plugin'

describe('Plugin interface', () => {
it('is compatible as CommonJS module', () => {
Expand Down

0 comments on commit 2390a42

Please sign in to comment.