Skip to content

Commit

Permalink
chore(html-to-slate-ast): update dev and peer dependencies (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroschmitz authored Nov 20, 2023
1 parent 02b54d5 commit 2cf8a43
Show file tree
Hide file tree
Showing 11 changed files with 334 additions and 2,243 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-chicken-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcms/html-to-slate-ast': patch
---

Updated dev and peer dependencies alongside docs to fix vulnerability warning report
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
with:
fetch-depth: 0

- name: Use Node.js 12.x
uses: actions/setup-node@v1
- name: Set up Node
uses: actions/setup-node@v4
with:
version: 12.x
node-version: lts/*

- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['12.x', '14.x']
node: ['18.x', '20.x']
os: [ubuntu-latest]

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
with:
fetch-depth: 0

- name: Use Node.js 12.x
uses: actions/setup-node@v1
- name: Set up Node
uses: actions/setup-node@v4
with:
version: 12.x
node-version: lts/*

- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/size.yml

This file was deleted.

24 changes: 1 addition & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"@changesets/cli": "^2.10.3",
"@commitlint/cli": "^12.1.1",
"@commitlint/config-conventional": "^12.1.1",
"@size-limit/preset-small-lib": "^4.10.2",
"@testing-library/jest-dom": "^5.12.0",
"@testing-library/react": "^11.2.6",
"@types/node": "^15.12.4",
Expand All @@ -19,7 +18,6 @@
"lint-staged": "^11.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"size-limit": "^4.10.2",
"tsdx": "^0.14.1",
"typescript": "^4.2.4"
},
Expand All @@ -36,26 +34,6 @@
"prepublish": "lerna run prepublish",
"changeset": "changeset",
"release": "changeset publish",
"size": "size-limit",
"analyze": "size-limit --why",
"prepare": "husky install"
},
"size-limit": [
{
"path": "packages/react-renderer/dist/rich-text-react-renderer.cjs.production.min.js",
"limit": "6 KB"
},
{
"path": "packages/react-renderer/dist/rich-text-react-renderer.esm.js",
"limit": "6 KB"
},
{
"path": "packages/html-renderer/dist/rich-text-html-renderer.cjs.production.min.js",
"limit": "3 KB"
},
{
"path": "packages/html-renderer/dist/rich-text-html-renderer.esm.js",
"limit": "3 KB"
}
]
}
}
3 changes: 0 additions & 3 deletions packages/html-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@
"LICENSE.md",
"dist"
],
"engines": {
"node": ">=10"
},
"jest": {
"setupFilesAfterEnv": [
"@testing-library/jest-dom/extend-expect"
Expand Down
2 changes: 1 addition & 1 deletion packages/html-to-slate-ast/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This package needs to have the packages `slate` and `slate-hyperscript` installe
npm install jsdom

# required peer-dependancies
npm install slate@0.58.3 slate-hyperscript@0.58.3
npm install slate@0.66.1 slate-hyperscript@0.67.0
npm install @graphcms/html-to-slate-ast
```

Expand Down
16 changes: 6 additions & 10 deletions packages/html-to-slate-ast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@
"prepublish": "npm run build"
},
"peerDependencies": {
"jsdom": "^16.6.0",
"slate": "^0.65.3",
"slate-hyperscript": "^0.62.0"
"slate": "^0.66.1",
"slate-hyperscript": "^0.67.0"
},
"devDependencies": {
"@types/jsdom": "^16.2.11",
"jsdom": "^16.6.0",
"slate": "^0.65.3",
"slate-hyperscript": "^0.62.0"
"@types/jsdom": "^21.1.5",
"jsdom": "^22.1.0",
"slate": "^0.66.1",
"slate-hyperscript": "^0.67.0"
},
"publishConfig": {
"access": "public"
Expand All @@ -43,9 +42,6 @@
"LICENSE.md",
"dist"
],
"engines": {
"node": ">=10"
},
"jest": {},
"dependencies": {
"@braintree/sanitize-url": "^5.0.2",
Expand Down
3 changes: 0 additions & 3 deletions packages/react-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@
"LICENSE.md",
"dist"
],
"engines": {
"node": ">=10"
},
"jest": {
"setupFilesAfterEnv": [
"@testing-library/jest-dom/extend-expect"
Expand Down
Loading

0 comments on commit 2cf8a43

Please sign in to comment.