Skip to content
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

build(deps)!: bump Stencil to v4 #8108

Merged
merged 52 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
0f034fd
build(deps)!: bump Stencil to v4
jcfranco Oct 31, 2023
132a97b
merge main
jcfranco Nov 2, 2023
296cc30
recreate lock file
jcfranco Nov 2, 2023
c94862b
remove obsolete JSDOM type patch
jcfranco Nov 2, 2023
6437ff3
drop JSDOM patch script references
jcfranco Nov 2, 2023
a5aea4d
bump TS to 5.2.2
jcfranco Nov 2, 2023
2feb2c0
switch Stencil PostCSS plugin for community (maintained) version
jcfranco Nov 2, 2023
b6f1ef4
revert TS bump
jcfranco Nov 3, 2023
d4de7a2
fix PostCSS plugin imports
jcfranco Nov 3, 2023
bffeb30
add auto-generated components.d.ts per Stencil guidance (https://sten…
jcfranco Nov 3, 2023
c7d023d
drop obsolete tree shaking patch (https://github.com/Esri/calcite-des…
jcfranco Nov 3, 2023
680e1c4
drop multi-build workaround for https://github.com/ionic-team/stencil…
jcfranco Nov 3, 2023
6ae71fb
patch JSX import path for React output target
jcfranco Nov 3, 2023
705b6ef
merge main
jcfranco Nov 3, 2023
75aca23
Revert "drop multi-build workaround for https://github.com/ionic-team…
jcfranco Nov 3, 2023
932f7b9
build(deps): bump angular packages to fix build errors (#8119)
benelan Nov 3, 2023
b1a061e
build(deps): fix package-lock merge conflicts (#8120)
benelan Nov 3, 2023
1f0c00c
chore(deps-dev): remove unused yargs type (#7996)
alisonailea Nov 3, 2023
3d4eb8d
merge main
jcfranco Nov 4, 2023
052f098
test(openClose): add missing awaits to openClose tests
jcfranco Nov 4, 2023
88a8c16
bump puppeteer
jcfranco Nov 4, 2023
42f3647
ci: update github actions for new rc base branch (#8122)
benelan Nov 4, 2023
98e6282
build: update browserslist db (#8128)
calcite-admin Nov 5, 2023
a35920e
update test types
jcfranco Nov 6, 2023
8a013d1
test(openClose): add missing awaits to openClose tests (#8127)
jcfranco Nov 6, 2023
db6fff6
merge main
jcfranco Nov 7, 2023
6dc5d39
update openClose helper to be sync
jcfranco Nov 7, 2023
9a085ab
update helper type
jcfranco Nov 7, 2023
13c8d9f
fix openClose page setup
jcfranco Nov 7, 2023
156e92a
update openClose helper with different test path for programmatic vs …
jcfranco Nov 8, 2023
9f44154
use proper API to access remote object on JSHandles
jcfranco Nov 8, 2023
7a927f6
fix input-number test due to formatting differences between browser a…
jcfranco Nov 8, 2023
785710a
update slider expected es formatted values
jcfranco Nov 8, 2023
a1798ac
revisit approach to have consistent number formatting between browser…
jcfranco Nov 8, 2023
0dcb191
fix openClose animation disabling in tests
jcfranco Nov 8, 2023
6aa6b8c
update icon util spec test
jcfranco Nov 8, 2023
db59094
add problematic locales to skipped locales and roll back attempts to …
jcfranco Nov 9, 2023
bd61c00
update skipped locale list in input tests
jcfranco Nov 9, 2023
872203e
merge rc
jcfranco Nov 9, 2023
d3fdf8f
revert unnecessary restored patch
jcfranco Nov 9, 2023
6098127
tidy up
jcfranco Nov 9, 2023
105c84f
bump stencil to latest
jcfranco Nov 9, 2023
b06c3d0
bump stencil-eslint to latest
jcfranco Nov 9, 2023
828caa0
bump TS to 5.1.6 to match Angular v16 range
jcfranco Nov 9, 2023
fcc5f6f
bump Angular to v17
jcfranco Nov 9, 2023
ff5145f
bump TS to latest
jcfranco Nov 9, 2023
02f56e4
move cc deps down to package from root
jcfranco Nov 9, 2023
8d35b0b
merge rc
jcfranco Nov 9, 2023
5ba6423
restore JSX import patch required for v4
jcfranco Nov 9, 2023
f168787
add missing globby package
jcfranco Nov 9, 2023
45bc2b1
update eslint-plugin-calcite-components deps
jcfranco Nov 10, 2023
71a0d67
restore page.waitForChanges for openClose initialization test
jcfranco Nov 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104,994 changes: 32,534 additions & 72,460 deletions package-lock.json

Large diffs are not rendered by default.

25 changes: 14 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@types/dedent": "0.7.1",
"@types/eslint": "8.40.2",
"@types/estree": "1.0.4",
"@types/jest": "27.0.3",
"@types/jest": "29.5.7",
"@types/jest-axe": "3.5.7",
"@types/lodash-es": "4.17.10",
"@types/node": "^18.0.0",
Expand All @@ -54,8 +54,8 @@
"@types/semver": "7.5.4",
"@types/shell-quote": "1.7.3",
"@types/sortablejs": "1.15.4",
"@typescript-eslint/eslint-plugin": "5.60.1",
"@typescript-eslint/parser": "5.48.2",
"@typescript-eslint/eslint-plugin": "6.10.0",
"@typescript-eslint/parser": "6.10.0",
"@whitespace/storybook-addon-html": "5.0.0",
"autoprefixer": "10.4.16",
"axe-core": "4.8.2",
Expand All @@ -72,30 +72,30 @@
"eslint": "8.44.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jest": "27.2.3",
"eslint-plugin-jest": "27.6.0",
"eslint-plugin-jsdoc": "46.4.6",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-unicorn": "46.0.1",
"globby": "14.0.0",
"husky": "8.0.3",
"jest": "27.4.5",
"jest-axe": "7.0.1",
"jest-cli": "27.4.5",
"jest": "29.7.0",
"jest-axe": "8.0.0",
"jest-cli": "29.7.0",
"json-to-ts": "1.7.0",
"lerna": "7.1.5",
"lint-staged": "13.2.3",
"markdownlint-cli": "0.34.0",
"postcss": "8.4.31",
"prettier": "2.8.8",
"puppeteer": "10.0.0",
"puppeteer": "21.5.0",
"quicktype-core": "23.0.76",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"rimraf": "5.0.5",
"rollup": "3.26.0",
"semver": "7.5.4",
"shell-quote": "1.8.1",
"stencil-eslint-core": "0.3.1",
"storybook": "6.5.16",
"storybook-addon-themes": "6.1.0",
"storybook-rtl-addon": "0.3.3",
Expand All @@ -104,15 +104,18 @@
"stylelint-config-recommended-scss": "12.0.0",
"stylelint-use-logical-spec": "5.0.0",
"tailwindcss": "3.3.5",
"ts-jest": "27.1.5",
"ts-jest": "29.1.1",
"ts-node": "10.9.1",
"turbo": "1.10.15",
"type-fest": "3.11.1",
"typescript": "4.9.5",
"typescript": "5.2.2",
"updtr": "4.0.0",
"workbox-build": "7.0.0"
},
"license": "SEE LICENSE.md",
"overrides": {
"@jest/transform": "29.7.0"
},
"packageManager": "npm@10.1.0",
"volta": {
"node": "18.18.0",
Expand Down
30 changes: 15 additions & 15 deletions packages/calcite-components-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@
"clean": "rimraf dist node_modules .turbo .angular projects/component-library/dist"
},
"dependencies": {
"@angular/animations": "16.2.0",
"@angular/common": "16.2.0",
"@angular/compiler": "16.2.0",
"@angular/core": "16.2.0",
"@angular/forms": "16.2.0",
"@angular/platform-browser": "16.2.0",
"@angular/platform-browser-dynamic": "16.2.0",
"@angular/router": "16.2.0",
"rxjs": "7.8.0",
"tslib": "2.3.0",
"zone.js": "0.13.0"
"@angular/animations": "17.0.2",
"@angular/common": "17.0.2",
"@angular/compiler": "17.0.2",
"@angular/core": "17.0.2",
"@angular/forms": "17.0.2",
"@angular/platform-browser": "17.0.2",
"@angular/platform-browser-dynamic": "17.0.2",
"@angular/router": "17.0.2",
"rxjs": "7.8.1",
"tslib": "2.6.2",
"zone.js": "0.14.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "16.2.8",
"@angular/cli": "16.2.8",
"@angular/compiler-cli": "16.2.0",
"ng-packagr": "16.2.3"
"@angular-devkit/build-angular": "17.0.0",
"@angular/cli": "17.0.0",
"@angular/compiler-cli": "17.0.2",
"ng-packagr": "17.0.0"
},
"volta": {
"extends": "../../package.json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"url": "https://github.com/Esri/calcite-design-system/issues"
},
"peerDependencies": {
"@angular/common": "^16.2.0",
"@angular/core": "^16.2.0",
"@angular/common": "^17.0.2",
"@angular/core": "^17.0.2",
"@esri/calcite-components": "1.10.1-next.3"
},
"devDependencies": {
"@esri/calcite-components": "1.10.1-next.3"
},
"dependencies": {
"tslib": "2.3.0"
"tslib": "2.6.2"
},
"lerna": {
"command": {
Expand Down
3 changes: 2 additions & 1 deletion packages/calcite-components-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
"license": "SEE LICENSE.md",
"scripts": {
"build": "rimraf dist && npm run compile",
"prebuild": "npm run patch:ssr",
"prebuild": "npm run patch:ssr && npm run patch:jsx-import",
"clean": "rimraf dist node_modules .turbo",
"compile": "npm run tsc",
"patch:jsx-import": "ts-node support/patchJSXImport.ts",
"patch:ssr": "ts-node support/patchSSR.ts",
"tsc": "tsc"
},
Expand Down
21 changes: 21 additions & 0 deletions packages/calcite-components-react/support/patchJSXImport.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// patch needed due to Stencil's React output target using an outdated path for the JSX type import

const {
promises: { readFile, writeFile },
} = require("fs");
const { resolve } = require("path");

const incorrectJsxTypeImport = "import type { JSX } from '@esri/calcite-components/dist/components';";
const correctJsxTypeImport = "import type { JSX } from '@esri/calcite-components/dist/types/components';";

(async () => {
try {
const filePath = resolve(`${__dirname}/../src/components.ts`);
const contents = await readFile(filePath, { encoding: "utf8" });

await writeFile(filePath, contents.replace(incorrectJsxTypeImport, correctJsxTypeImport));
} catch (err) {
console.error(err);
process.exit(1);
}
})();
2 changes: 1 addition & 1 deletion packages/calcite-components/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
"plugin:jsdoc/recommended",
"prettier",
],
ignorePatterns: ["dist", "docs", "hydrate", "www"],
ignorePatterns: ["dist", "docs", "hydrate", "www", "src/components.d.ts"],
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
Expand Down
1 change: 1 addition & 0 deletions packages/calcite-components/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ docs/
www/
dist/
hydrate/
src/components.d.ts
18 changes: 8 additions & 10 deletions packages/calcite-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
"hydrate/"
],
"scripts": {
"build": "npm run util:patch-jsdom-types && npm run util:prep-build-reqs && stencil build && npm run util:patch && npm run util:generate-t9n-docs-json && npm run util:clean-readmes",
"build": "npm run util:prep-build-reqs && stencil build && npm run util:patch && npm run util:generate-t9n-docs-json && npm run util:clean-readmes",
"build:watch": "npm run util:prep-build-reqs && stencil build --no-docs --watch",
"build:watch-dev": "npm run util:prep-build-reqs && stencil build --no-docs --dev --watch",
"build-storybook": "npm run util:build-docs && NODE_OPTIONS=--openssl-legacy-provider build-storybook --output-dir ./docs --quiet",
"clean": "npm run util:clean-js-files && npm run util:clean-readmes && rimraf node_modules dist www hydrate docs .turbo src/components.d.ts",
"deps:update": "updtr --exclude chalk cheerio typescript @types/jest jest jest-cli ts-jest puppeteer @whitespace/storybook-addon-html && npm audit fix",
"clean": "npm run util:clean-js-files && npm run util:clean-readmes && rimraf node_modules dist www hydrate docs .turbo",
"deps:update": "updtr --exclude chalk cheerio typescript @types/jest jest jest-cli ts-jest @whitespace/storybook-addon-html && npm audit fix",
"docs": "build-storybook",
"docs:preview": "npm run util:build-docs && NODE_OPTIONS=--openssl-legacy-provider STORYBOOK_SCREENSHOT_LOCAL_BUILD=true start-storybook",
"lint": "concurrently npm:lint:*",
Expand All @@ -47,10 +47,8 @@
"util:generate-t9n-docs-json": "ts-node --esm support/generateT9nDocsJSON.ts",
"util:generate-t9n-types": "ts-node --esm support/generateT9nTypes.ts",
"util:hydration-styles": "ts-node --esm support/hydrationStyles.ts",
"util:patch": "npm run util:patch-esm-resolution && npm run util:patch-tree-shaking",
"util:patch": "npm run util:patch-esm-resolution",
"util:patch-esm-resolution": "ts-node --esm support/patchESMResolution.ts",
"util:patch-tree-shaking": "ts-node --esm support/patchTreeShaking.ts",
"util:patch-jsdom-types": "ts-node --esm support/patchJSDOMTypes.ts",
"util:prep-build-reqs": "npm run util:copy-assets && npm run util:generate-t9n-types",
"util:sync-t9n-en-bundles": "ts-node --esm support/syncEnT9nBundles.ts",
"util:test-types": "tsc --esModuleInterop dist/types/**/*.d.ts dist/components/*.d.ts && ! grep -rnw 'dist/types' -e '<reference types=' && npm run util:clean-js-files",
Expand All @@ -65,7 +63,7 @@
},
"dependencies": {
"@floating-ui/dom": "1.5.3",
"@stencil/core": "2.22.3",
"@stencil/core": "4.7.1",
"@types/color": "3.0.5",
"color": "4.2.3",
"composed-offset-position": "0.0.4",
Expand All @@ -80,12 +78,12 @@
"@esri/calcite-design-tokens": "^1.1.1-next.0",
"@esri/calcite-ui-icons": "3.25.0",
"@esri/eslint-plugin-calcite-components": "^0.2.3-next.5",
"@stencil-community/eslint-plugin": "0.5.0",
"@stencil-community/eslint-plugin": "0.6.0",
"@stencil-community/postcss": "2.2.0",
"@stencil/angular-output-target": "0.8.3",
"@stencil/postcss": "2.1.0",
"@stencil/react-output-target": "0.5.3",
"@stencil/sass": "3.0.7",
"@stencil/state-tunnel": "1.0.1"
"jsdom": "22.1.0"
},
"license": "SEE LICENSE.md",
"volta": {
Expand Down
Loading