-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(deps)!: bump Stencil to v4 (#8108)
**Related Issue:** #7861 Bumps Stencil to v4. * add `components.d.ts` to source control per [Stencil recommendation](https://stenciljs.com/docs/typed-components) * add workaround for JSX imports not matching what Stencil React output target expects * dropped workaround for #6696 (fixed in v4) * drop obsolete tree-shaking patch (#5233) (fixed in v4) * skips additional locales that are showing formatting differences between test/node and browser environments * updates `volta` and `engines` fields from `eslint-plugin-calcite-components`' `package.json` to match other packages * dep changes: * bumps `@typescript-eslint`†, `angular`†, `jest`†, `puppeteer`, `typescript` to latest († and related deps) * removed unused `@stencil/state-tunnel` * replaced `@stencil/postcss` with `@stencil-community/postcss` * added missing `globby` and `jsdom` * override `@jest/transform` to ensure node types match BREAKING CHANGE: We are treating this core version bump as a precautionary measure, particularly due to its potential impact on projects using `calcite-components` and Stencil. --------- Co-authored-by: Ben Elan <no-reply@benelan.dev> Co-authored-by: jcfranco <jcfranco@users.noreply.github.com>
- Loading branch information
Showing
33 changed files
with
43,126 additions
and
71,962 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
packages/calcite-components-react/support/patchJSXImport.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ docs/ | |
www/ | ||
dist/ | ||
hydrate/ | ||
src/components.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.