-
Notifications
You must be signed in to change notification settings - Fork 801
Comparing changes
Open a pull request
base repository: stenciljs/core
base: v4.12.3
head repository: stenciljs/core
compare: v4.12.4
- 17 commits
- 31 files changed
- 6 contributors
Commits on Feb 20, 2024
-
chore(deps-dev): bump ip from 1.1.8 to 1.1.9 (#5387)
Bumps [ip](https://github.com/indutny/node-ip) from 1.1.8 to 1.1.9. - [Commits](indutny/node-ip@v1.1.8...v1.1.9) --- updated-dependencies: - dependency-name: ip dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 87e4be0 - Browse repository at this point
Copy the full SHA 87e4be0View commit details -
chore(repo): remove old release scripts pt2 (#5368)
now that stencil releases are largely automated, release tasks that were skipped during manual releases can be removed. this commit removes all tasks that were skipped with `isCI` is was `true` (as it's always `true` these days). additional conditionals that use logical-AND with `isCI` have been updated, as that part of the conditional is now always `true`. remove the `--otp` flag, as it is only used for manual releases as a result of these removals, the `--any-branch` flag can be safely removed from our release pipeline, as its no longer used.
Configuration menu - View commit details
-
Copy full SHA for d428cff - Browse repository at this point
Copy the full SHA d428cffView commit details
Commits on Feb 21, 2024
-
chore(build): make esbuild standalone (#5385)
This removes the dependence of the esbuild-based build on the existing Rollup-based build. Previously we needed to run the Rollup-based build first so that certain files which could not yet be built with Esbuild would be present on disk, but since we can now build everything with Esbuild we don't need to take this step anymore. We do, however, continue to need to run the TypeScript compiler in order to generate up-to-date typedef files. Part of STENCIL-1016
Configuration menu - View commit details
-
Copy full SHA for 7d7aae4 - Browse repository at this point
Copy the full SHA 7d7aae4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bf79d1 - Browse repository at this point
Copy the full SHA 3bf79d1View commit details -
chore(scripts): remove an unused option from BuildOptions (#5390)
After we removed the old release scripts recently this option is no longer used anywhere, so we can delete it.
Configuration menu - View commit details
-
Copy full SHA for 9c82ffb - Browse repository at this point
Copy the full SHA 9c82ffbView commit details
Commits on Feb 22, 2024
-
chore(deps): update dependency eslint-plugin-jest to v27.9.0 (#5392)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for bab3998 - Browse repository at this point
Copy the full SHA bab3998View commit details -
chore(ci): fix puppeteer downloads (#5398)
the url that pulls down chrome images seems to be intermittedly failing in github actions. when we go to install dependencies (`npm ci`), we're greeted with an error: ``` npm ERR! code 1 npm ERR! path /home/runner/work/stencil/stencil/node_modules/puppeteer npm ERR! command failed npm ERR! command sh -c node install.mjs npm ERR! Error: ERROR: Failed to set up chrome-headless-shell v121.0.6167.85! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download. ``` this appears to be a result of an intermittent failure (if it's intermittent it to-be-determined). reports online suggest bumping to puppeteer v22, which we cannot do at this moment due to it dropping support for node 16. instead, set the base url environment variable to tell puppeteer where to pull chrome from
Configuration menu - View commit details
-
Copy full SHA for 96803b1 - Browse repository at this point
Copy the full SHA 96803b1View commit details -
chore(deps): update dependency cspell to v8.4.0 (#5395)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for e559930 - Browse repository at this point
Copy the full SHA e559930View commit details -
chore(deps): update dependency esbuild to v0.20.1 (#5394)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 74d9f94 - Browse repository at this point
Copy the full SHA 74d9f94View commit details
Commits on Feb 23, 2024
-
fix(build): address issue with dynamic import and vite (#5399)
When we added a script for building the modules in `internal/` with Esbuild in #5276 we needed to make a change to the function that Stencil uses at runtime to lazy-load components (in `src/client/client-load-module.ts`). Prior to #5276 we had a dynamic import statement which looked like so: ```ts import( `./${bundleId}.entry.js${BUILD.hotModuleReplacement && hmrVersionId ? '?s-hmr=' + hmrVersionId : ''}` ) ``` This constructs a filepath to the module for a given Stencil component, accounting for HMR versioning, and then imports the module. All well and good, but unfortunately this dynamic import does not play well with Esbuild. As described [here](https://esbuild.github.io/api/#non-analyzable-imports) when Esbuild is in 'bundle' mode and it encounters an `import()` _and_ the imported path or identifier looks "analyzable" it will attempt to resolve the corresponding file and incorporate it into the bundle. This is not always what you want! In particular, in our situation the leading `"./"` in the template literal we had in `client-load-module.ts` caused Esbuild to consider the `import()` an "analyzable" import and it then tried to resolve and bundle the import instead of just leaving the dynamic import in the code (as Rollup does in this case). This created an issue because at _compile time_ (i.e. when Stencil itself is built) this import does not resolve to anything, so Esbuild would essentially transform that line into an empty import. This caused runtime issues because the side-effect of the dynamic import was no longer happening, so the modules containing Stencil component classes and so on were not longer being loaded in. To get this working for #5276 we pulled out the `"./"` string as a separate variable, changing the template literal so it looks something like this: ```ts const MODULE_IMPORT_PREFIX = './'; import( `${MODULE_IMPORT_PREFIX}${bundleId}.entry.js${BUILD.hotModuleReplacement && hmrVersionId ? '?s-hmr=' + hmrVersionId : ''}` ) ``` This causes Esbuild to conclude that the import is "non-analyzable", which addresses the issue and causes both Rollup and Esbuild to emit equivalent code for this snippet, where both retain the dynamic import, allowing for the runtime module resolution that we want here. _However_, this broke the ability to use Stencil with Vite, which will complain about non-analyzable imports if it sees a dynamic import which does _not_ begin with `"./"`. See #5389 for details. So essentially we have a situation where the behavior of Rollup, Esbuild, and Vite is incompatible. The solution is to figure out a way for both the Esbuild and Rollup builds to emit code in this case which retains the dynamic import _and_ retains the leading `"./"` in the template literal. This is accomplished by retaining the `${MODULE_IMPORT_PREFIX}` in the template literal, so that Esbuild does not attempt to analyze and bundle the import, and adding plugins to both the Rollup and Esbuild bundles to transform the emitted code before it is written to disk. fixes #5389 STENCIL-1181
Configuration menu - View commit details
-
Copy full SHA for 8ebacae - Browse repository at this point
Copy the full SHA 8ebacaeView commit details
Commits on Feb 26, 2024
-
chore(deps): update dependency @types/eslint to v8.56.3 (#5404)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 369864f - Browse repository at this point
Copy the full SHA 369864fView commit details -
chore(deps): update dependency @types/node to v20.11.20 (#5405)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for b0cf633 - Browse repository at this point
Copy the full SHA b0cf633View commit details -
chore(deps): update dependency terser to v5.27.2 (#5407)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for ff3e361 - Browse repository at this point
Copy the full SHA ff3e361View commit details -
chore(deps): update dependency cspell to v8.4.1 (#5406)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 16519d9 - Browse repository at this point
Copy the full SHA 16519d9View commit details -
chore(deps): update dependency webpack to v5.90.3 (#5408)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 9ae3e60 - Browse repository at this point
Copy the full SHA 9ae3e60View commit details -
chore(deps): update dependency eslint-plugin-jsdoc to v48.2.0 (#5409)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 21cf7f0 - Browse repository at this point
Copy the full SHA 21cf7f0View commit details -
* v4.12.4 * add 'closes' issue to changelog --------- Co-authored-by: rwaskiewicz <1930213+rwaskiewicz@users.noreply.github.com> Co-authored-by: Ryan Waskiewicz <ryanwaskiewicz@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3c2284b - Browse repository at this point
Copy the full SHA 3c2284bView commit details
There are no files selected for viewing