-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
feat!: bump all unified
ecosystem dependencies, support mdx v3
#486
Changes from 10 commits
2a9353d
474ddcb
2d17526
80846ee
be9830f
c36fe91
16de633
db0a4d9
0a823ab
88932f1
1cd00be
23da599
96f0c78
289ad71
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"eslint-mdx": major | ||
"eslint-plugin-mdx": major | ||
--- | ||
|
||
feat!: bump all unified ecosystem dependencies, support mdx v3 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"eslint-mdx": major | ||
"eslint-plugin-mdx": major | ||
--- | ||
|
||
chore!: require node >= 18, drop node 12, 14 and 16 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"node": "16", | ||
"node": "18", | ||
"packages": [ | ||
"packages/*" | ||
], | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
"workspaces": [ | ||
"packages/*" | ||
], | ||
"packageManager": "[email protected].19", | ||
"packageManager": "[email protected].21", | ||
"scripts": { | ||
"build": "run-p build:*", | ||
"build:r": "r -f es2015", | ||
|
@@ -27,25 +27,33 @@ | |
}, | ||
"devDependencies": { | ||
"@1stg/lib-config": "^12.0.0", | ||
"@changesets/changelog-github": "^0.4.8", | ||
"@changesets/cli": "^2.26.2", | ||
"@types/eslint": "^8.44.1", | ||
"@types/eslint-plugin-markdown": "^2.0.0", | ||
"@types/jest": "^29.5.3", | ||
"@types/node": "^20.4.6", | ||
"@types/react": "^18.2.18", | ||
"@types/unist": "^2.0.6", | ||
"jest": "^29.6.2", | ||
"@changesets/changelog-github": "^0.5.0", | ||
"@changesets/cli": "^2.27.1", | ||
"@types/eslint": "^8.44.8", | ||
"@types/eslint-plugin-markdown": "^2.0.2", | ||
"@types/jest": "^29.5.10", | ||
"@types/node": "^20.10.1", | ||
"@types/react": "^18.2.39", | ||
"@types/unist": "^3.0.2", | ||
"jest": "^29.7.0", | ||
"patch-package": "^8.0.0", | ||
"react": "^18.2.0", | ||
"ts-jest": "^29.1.1", | ||
"ts-node": "^10.9.1", | ||
"type-coverage": "^2.26.0", | ||
"typescript": "^5.1.6", | ||
"type-coverage": "^2.27.0", | ||
"typescript": "^5.3.2", | ||
"yarn-deduplicate": "^6.0.2" | ||
}, | ||
"resolutions": { | ||
"prettier": "^2.8.8" | ||
"@types/acorn": "^6.0.0", | ||
"@types/mdast": "^4.0.3", | ||
"acorn": "^8.11.2", | ||
"cliui": "npm:@isaacs/cliui@^8.0.2", | ||
"mdast-util-frontmatter": "^2.0.1", | ||
"mdast-util-gfm": "^3.0.0", | ||
"prettier": "^2.8.8", | ||
"unified": "^11.0.4", | ||
"unified-engine": "^11.1.1" | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
}, | ||
"license": "MIT", | ||
"engines": { | ||
"node": "^12.20.0 || ^14.18.0 || >=16.0.0" | ||
"node": ">=18.0.0" | ||
}, | ||
"main": "lib/index.js", | ||
"module": "lib/index.es2015.mjs", | ||
|
@@ -30,19 +30,19 @@ | |
"eslint": ">=8.0.0" | ||
}, | ||
"dependencies": { | ||
"acorn": "^8.10.0", | ||
"acorn": "^8.11.2", | ||
"acorn-jsx": "^5.3.2", | ||
"espree": "^9.6.1", | ||
"estree-util-visit": "^1.2.1", | ||
"remark-mdx": "^2.3.0", | ||
"remark-parse": "^10.0.2", | ||
"remark-stringify": "^10.0.3", | ||
"estree-util-visit": "^2.0.0", | ||
"remark-mdx": "^3.0.0", | ||
"remark-parse": "^11.0.0", | ||
"remark-stringify": "^11.0.0", | ||
"synckit": "^0.8.5", | ||
"tslib": "^2.6.1", | ||
"unified": "^10.1.2", | ||
"unified-engine": "^10.1.0", | ||
"unist-util-visit": "^4.1.2", | ||
"tslib": "^2.6.2", | ||
"unified": "^11.0.4", | ||
"unified-engine": "^11.1.1", | ||
"unist-util-visit": "^5.0.0", | ||
"uvu": "^0.5.6", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. using the latest release of node there's an option to drop There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe a new PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We are actually using |
||
"vfile": "^5.3.7" | ||
"vfile": "^6.0.1" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/node_modules/eslint/lib/cli-engine/formatters/stylish.js b/node_modules/eslint/lib/cli-engine/formatters/stylish.js | ||
index a808448..1d4b79e 100644 | ||
--- a/node_modules/eslint/lib/cli-engine/formatters/stylish.js | ||
+++ b/node_modules/eslint/lib/cli-engine/formatters/stylish.js | ||
@@ -5,7 +5,7 @@ | ||
"use strict"; | ||
|
||
const chalk = require("chalk"), | ||
- stripAnsi = require("strip-ansi"), | ||
+ stripAnsi = require("strip-ansi-cjs"), | ||
ChristianMurphy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
table = require("text-table"); | ||
|
||
//------------------------------------------------------------------------------ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
diff --git a/node_modules/string-length/index.js b/node_modules/string-length/index.js | ||
index c2589a2..3040f0a 100644 | ||
--- a/node_modules/string-length/index.js | ||
+++ b/node_modules/string-length/index.js | ||
@@ -1,5 +1,5 @@ | ||
'use strict'; | ||
-const stripAnsi = require('strip-ansi'); | ||
+const stripAnsi = require('strip-ansi-cjs'); | ||
ChristianMurphy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
const charRegex = require('char-regex'); | ||
|
||
const stringLength = string => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/mdx-js/eslint-mdx/actions/runs/7061866523/job/19224439257?pr=486#step:5:30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are free to choose 18, as 16 is EOL.
But, Node 16 should work for all other unified projects. Everything is tested and works on Node 16.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Node 16 still works, I disable testing because the expected errors thrown are different with other versions.