Skip to content

Commit

Permalink
deps: update all dependencies to the latest - drop support for nodejs…
Browse files Browse the repository at this point in the history
… 12 and 14
  • Loading branch information
marcomontalbano committed Feb 13, 2024
1 parent d987cd6 commit b7a6c4a
Show file tree
Hide file tree
Showing 25 changed files with 6,029 additions and 4,864 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Node 🧰
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x

- name: Install 📦
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:

strategy:
matrix:
node: [12.22.0, 12.x, 14.x, 16.x, 18.x, 20.x]
node: [16.14.0, 16.x, 18.x, 20.x]

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

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

Expand All @@ -41,12 +41,12 @@ jobs:

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Node 🧰
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x

- name: Install 📦
run: yarn --immutable
Expand All @@ -61,7 +61,7 @@ jobs:
path-to-lcov: ./coverage/lcov.info # optional (default value)

- name: Upload `coverage` artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/lcov-report
Expand All @@ -78,7 +78,7 @@ jobs:
# - name: Node 🧰
# uses: actions/setup-node@v3
# with:
# node-version: 14.x
# node-version: 18.x

# - name: Install 📦
# run: yarn --immutable
Expand Down
768 changes: 0 additions & 768 deletions .yarn/releases/yarn-3.1.1.cjs

This file was deleted.

875 changes: 875 additions & 0 deletions .yarn/releases/yarn-3.8.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"

yarnPath: .yarn/releases/yarn-3.1.1.cjs
yarnPath: .yarn/releases/yarn-3.8.0.cjs
51 changes: 26 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"website:start": "yarn build && yarn workspace @figma-export/website dev",
"website:build": "yarn build && yarn workspace @figma-export/website build",
"website:serve": "yarn workspace @figma-export/website start",
"upgrade:major": "yarn workspaces foreach -iv exec npx npm-check-updates -u",
"upgrade:major": "npx npm-check-updates -ws --root -u",
"upgrade:minor": "yarn upgrade:major --target minor",
"ls-engines": "yarn dlx ls-engines",
"version": "yarn && git add yarn.lock",
Expand All @@ -42,37 +42,38 @@
]
},
"devDependencies": {
"@types/chai": "~4.3.3",
"@types/chai-as-promised": "^7.1.5",
"@types/chai-things": "0.0.35",
"@types/mocha": "~9.1.1",
"@types/node": "~16.11.59",
"@types/sinon": "~10.0.13",
"@types/sinon-chai": "~3.2.8",
"@typescript-eslint/eslint-plugin": "~5.37.0",
"@typescript-eslint/parser": "~5.37.0",
"chai": "~4.3.6",
"@types/chai": "~4.3.11",
"@types/chai-as-promised": "^7.1.8",
"@types/chai-things": "0.0.38",
"@types/mocha": "~10.0.6",
"@types/node": "~20.11.17",
"@types/sinon": "~10.0.20",
"@types/sinon-chai": "~3.2.12",
"@typescript-eslint/eslint-plugin": "~6.21.0",
"@typescript-eslint/parser": "~6.21.0",
"chai": "~4.4.1",
"chai-as-promised": "^7.1.1",
"chai-things": "~0.2.0",
"eslint": "~8.23.1",
"eslint": "~8.56.0",
"eslint-config-airbnb": "~19.0.4",
"eslint-plugin-chai-friendly": "~0.7.2",
"eslint-plugin-import": "~2.26.0",
"husky": "^7.0.4",
"lerna": "^4.0.0",
"eslint-plugin-chai-friendly": "~0.7.4",
"eslint-plugin-import": "~2.29.1",
"husky": "^8.0.3",
"lerna": "^7.4.2",
"lerna-changelog": "~2.2.0",
"lint-staged": "~12.5.0",
"mocha": "~9.2.2",
"nock": "~13.2.9",
"npm-check-updates": "^12.5.12",
"lint-staged": "~14.0.1",
"ls-engines": "^0.9.1",
"mocha": "~10.3.0",
"nock": "~13.5.1",
"npm-check-updates": "^16.14.15",
"nyc": "~15.1.0",
"sinon": "~13.0.2",
"sinon": "~16.1.3",
"sinon-chai": "~3.7.0",
"ts-node": "~10.9.1",
"typescript": "~4.8.3"
"ts-node": "~10.9.2",
"typescript": "~5.3.3"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": ">= 16.14"
},
"resolutions": {
"axios": "^1.6.7"
Expand All @@ -89,5 +90,5 @@
"PR: New Feature :rocket:": ":rocket: New Feature"
}
},
"packageManager": "yarn@3.1.1"
"packageManager": "yarn@3.8.0"
}
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"sade": "~1.8.1"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": ">= 16.14"
},
"files": [
"/bin",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
"axios": "^1.6.7"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": ">= 16.14"
}
}
2 changes: 1 addition & 1 deletion packages/output-components-as-es6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"mini-svg-data-uri": "~1.4.4"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": ">= 16.14"
}
}
2 changes: 1 addition & 1 deletion packages/output-components-as-stdout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"@figma-export/types": "^4.8.0-alpha.4"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": ">= 16.14"
}
}
2 changes: 1 addition & 1 deletion packages/output-components-as-svg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"@figma-export/types": "^4.8.0-alpha.4"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": ">= 16.14"
}
}
4 changes: 2 additions & 2 deletions packages/output-components-as-svgr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"dependencies": {
"@figma-export/types": "^4.8.0-alpha.4",
"@figma-export/utils": "^4.8.0-alpha.4",
"@svgr/core": "~6.3.1"
"@svgr/core": "~8.1.0"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": ">= 16.14"
}
}
2 changes: 1 addition & 1 deletion packages/output-components-as-svgstore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"svgstore": "~3.0.1"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": ">= 16.14"
}
}
2 changes: 1 addition & 1 deletion packages/output-styles-as-css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"@figma-export/utils": "^4.8.0-alpha.4"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": ">= 16.14"
}
}
2 changes: 1 addition & 1 deletion packages/output-styles-as-less/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"@figma-export/utils": "^4.8.0-alpha.4"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": ">= 16.14"
}
}
2 changes: 1 addition & 1 deletion packages/output-styles-as-sass/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"@figma-export/utils": "^4.8.0-alpha.4"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": ">= 16.14"
}
}
2 changes: 1 addition & 1 deletion packages/output-styles-as-style-dictionary/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"@figma-export/utils": "^4.8.0-alpha.4"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": ">= 16.14"
}
}
4 changes: 2 additions & 2 deletions packages/transform-svg-with-svgo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
"dependencies": {
"@figma-export/types": "^4.8.0-alpha.4",
"@types/svgo": "~2.6.4",
"svgo": "~2.8.0"
"svgo": "~3.2.0"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": ">= 16.14"
}
}
2 changes: 1 addition & 1 deletion packages/transform-svg-with-svgo/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('transform svg with svgo', () => {
const actualSvg = await transformer({})(svg);

expect(actualSvg).to.be.eql(
'<svg width="50" height="50" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M0 0h50v50H0z"/></svg>',
'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" fill="none"><path fill="#fff" d="M0 0h50v50H0z"/></svg>',
);
});

Expand Down
16 changes: 10 additions & 6 deletions packages/transform-svg-with-svgo/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import { optimize, OptimizeOptions } from 'svgo';
import { optimize, Config } from 'svgo';

import * as FigmaExport from '@figma-export/types';

export = (options: OptimizeOptions): FigmaExport.StringTransformer => {
export = (options: Config): FigmaExport.StringTransformer => {
return async (svg) => {
const result = optimize(svg, options);
try {
const result = optimize(svg, options);

if (!('data' in result)) {
if (!('data' in result)) {
return undefined;
}

return result.data;
} catch (error) {
return undefined;
}

return result.data;
};
};
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"access": "public"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": ">= 16.14"
},
"dependencies": {
"figma-js": "~1.16.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"access": "public"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": ">= 16.14"
}
}
12 changes: 6 additions & 6 deletions packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@
"devDependencies": {
"@figma-export/cli": "^4.8.0-alpha.4",
"@figma-export/utils": "^4.8.0-alpha.4",
"@types/react": "^18.0.20",
"eslint-config-next": "^12.3.0",
"@types/react": "^18.2.55",
"eslint-config-next": "^13.5.6",
"npm-run-all": "~4.1.5",
"rimraf": "~3.0.2",
"sass": "~1.54.9"
"rimraf": "~5.0.5",
"sass": "~1.70.0"
},
"dependencies": {
"next": "^12.3.0",
"next": "^13.5.6",
"prismjs": "^1.29.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": ">= 16.14"
},
"browserslist": [
">0.3%",
Expand Down
Loading

0 comments on commit b7a6c4a

Please sign in to comment.