Bump the npm_and_yarn group across 1 directory with 2 updates
Type: Pull Request
State: Open
Association: None
Comments: 1
(11 months ago)
(11 months ago)
dependencies javascript
Bumps the npm_and_yarn group with 2 updates in the / directory: esbuild and wrangler.
Updates esbuild from 0.17.19 to 0.25.4
Release notes
Sourced from esbuild's releases.
v0.25.4
Add simple support for CORS to esbuild's development server (#4125)
Starting with version 0.25.0, esbuild's development server is no longer configured to serve cross-origin requests. This was a deliberate change to prevent any website you visit from accessing your running esbuild development server. However, this change prevented (by design) certain use cases such as "debugging in production" by having your production website load code from
localhostwhere the esbuild development server is running.To enable this use case, esbuild is adding a feature to allow Cross-Origin Resource Sharing (a.k.a. CORS) for simple requests. Specifically, passing your origin to the new
corsoption will now set theAccess-Control-Allow-Originresponse header when the request has a matchingOriginheader. Note that this currently only works for requests that don't send a preflightOPTIONSrequest, as esbuild's development server doesn't currently supportOPTIONSrequests.Some examples:
CLI:
esbuild --servedir=. --cors-origin=https://example.comJS:
const ctx = await esbuild.context({}) await ctx.serve({ servedir: '.', cors: { origin: 'https://example.com', }, })Go:
ctx, _ := api.Context(api.BuildOptions{}) ctx.Serve(api.ServeOptions{ Servedir: ".", CORS: api.CORSOptions{ Origin: []string{"https://example.com"}, }, })The special origin
*can be used to allow any origin to access esbuild's development server. Note that this means any website you visit will be able to read everything served by esbuild.Pass through invalid URLs in source maps unmodified (#4169)
This fixes a regression in version 0.25.0 where
sourcesin source maps that form invalid URLs were not being passed through to the output. Version 0.25.0 changed the interpretation ofsourcesfrom file paths to URLs, which means that URL parsing can now fail. Previously URLs that couldn't be parsed were replaced with the empty string. With this release, invalid URLs insourcesshould now be passed through unmodified.Handle exports named
__proto__in ES modules (#4162, #4163)In JavaScript, the special property name
__proto__sets the prototype when used inside an object literal. Previously esbuild's ESM-to-CommonJS conversion didn't special-case the property name of exports named__proto__so the exported getter accidentally became the prototype of the object literal. It's unclear what this affects, if anything, but it's better practice to avoid this by using a computed property name in this case.This fix was contributed by
@magic-akari.
... (truncated)
Changelog
Sourced from esbuild's changelog.
Changelog: 2023
This changelog documents all esbuild versions published in the year 2023 (versions 0.16.13 through 0.19.11).
0.19.11
Fix TypeScript-specific class transform edge case (#3559)
The previous release introduced an optimization that avoided transforming
super()in the class constructor for TypeScript code compiled withuseDefineForClassFieldsset tofalseif all class instance fields have no initializers. The rationale was that in this case, all class instance fields are omitted in the output so no changes to the constructor are needed. However, if all of this is the case and there are#privateinstance fields with initializers, those private instance field initializers were still being moved into the constructor. This was problematic because they were being inserted before the call tosuper()(sincesuper()is now no longer transformed in that case). This release introduces an additional optimization that avoids moving the private instance field initializers into the constructor in this edge case, which generates smaller code, matches the TypeScript compiler's output more closely, and avoids this bug:// Original code class Foo extends Bar { #private = 1; public: any; constructor() { super(); } }// Old output (with esbuild v0.19.9)
class Foo extends Bar {
constructor() {
super();
this.#private = 1;
}
#private;
}// Old output (with esbuild v0.19.10)
class Foo extends Bar {
constructor() {
this.#private = 1;
super();
}
#private;
}// New output
class Foo extends Bar {
#private = 1;
constructor() {
super();
}
}
Minifier: allow reording a primitive past a side-effect (#3568)
The minifier previously allowed reordering a side-effect past a primitive, but didn't handle the case of reordering a primitive past a side-effect. This additional case is now handled:
... (truncated)
Commits
218d29epublish 0.25.4 to npme66cd0bdev server: simple support for CORS requests (#4171)8bf3368js api: validate some options as arrays of strings1e7375ajs api: simplify comma-separated array validation5f5964drelease notes for #4163adb5284fix: handle__proto__as a computed property in exports and add tests for s...0aa9f7bfix #4169: keep invalid source map URLs unmodified5959289add additional guards for #4114 when using:is()677910bpublish 0.25.3 to npma41040efix #4110: support custom non-IPhostvalues- Additional commits viewable in compare view
Updates wrangler from 3.114.9 to 4.25.1
Release notes
Sourced from wrangler's releases.
wrangler@4.25.1
Patch Changes
#10000
c02b067Thanks@emily-shen! - Include more (sanitised) user errors in telemetry.We manually vet and sanitised error messages before including them in our telemetry collection - this PR just includes a couple more.
#9996
b0217f9Thanks@nikitassharma! - Disallow users from pushing images with unsupported platforms to the container image registry#10009
e87198aThanks@gpanders! - Fix containers diff output when using JSONC config files#9976
ad02ad3Thanks@dario-piotrowicz! - add warning for when users runwrangler dev --remotewith (enabled) containers#9819
0c4008cThanks@CarmenPopoviciu! - feat(vite-plugin): Add containers support invite devAdds support for Cloudflare Containers in
vite dev. Please note that at the time of this PR a container image can only specify the path to aDockerfile. Support for registry links will be added in a later version, as will containers support invite preview.Updated dependencies [
189fe23,7e5585d]:
@cloudflare/unenv-preset@2.4.0- miniflare@4.20250712.1
wrangler@4.25.0
Minor Changes
- #9835
9f0c175Thanks@thomasgauvin! - Added rename namespace command to Workers KVPatch Changes
- #9934
6cc24c0Thanks@emily-shen! - Add more thorough validation to containers configurationwrangler@4.24.4
Patch Changes
#9905
4ba9f25Thanks@dom96! - Support for Python packages in python_modules dir#9886
17b1e5aThanks@dom96! - Python packages are now read from cf-requirements.txt instead of requirements.txt by default#9899
d6a1b9bThanks@simonabadoiu! - Print local mode when running a browser binding in local mode#9951
e2672c5Thanks@penalosa! - Recommend remote bindings whenwrangler dev --remoteis used#9875
a5d7b35Thanks@gpanders! - Show expected format in error message for "containers images delete"#9954
bf4c9abThanks@penalosa! - Support Images binding ingetPlatformProxy()#9847
14ce577Thanks@penalosa! - Upgrade Undici#9974
f73da0dThanks@penalosa! - Pass worker name & compliance region through correctly when starting a remote bindings sessionUpdated dependencies [
ac08e68,3bb69fa,274a826,77d1cb2,5b0fc9e,bf4c9ab,14ce577]:
... (truncated)
Changelog
Sourced from wrangler's changelog.
4.25.1
Patch Changes
#10000
c02b067Thanks@emily-shen! - Include more (sanitised) user errors in telemetry.We manually vet and sanitised error messages before including them in our telemetry collection - this PR just includes a couple more.
#9996
b0217f9Thanks@nikitassharma! - Disallow users from pushing images with unsupported platforms to the container image registry#10009
e87198aThanks@gpanders! - Fix containers diff output when using JSONC config files#9976
ad02ad3Thanks@dario-piotrowicz! - add warning for when users runwrangler dev --remotewith (enabled) containers#9819
0c4008cThanks@CarmenPopoviciu! - feat(vite-plugin): Add containers support invite devAdds support for Cloudflare Containers in
vite dev. Please note that at the time of this PR a container image can only specify the path to aDockerfile. Support for registry links will be added in a later version, as will containers support invite preview.Updated dependencies [
189fe23,7e5585d]:
@cloudflare/unenv-preset@2.4.0- miniflare@4.20250712.1
4.25.0
Minor Changes
- #9835
9f0c175Thanks@thomasgauvin! - Added rename namespace command to Workers KVPatch Changes
- #9934
6cc24c0Thanks@emily-shen! - Add more thorough validation to containers configuration4.24.4
Patch Changes
#9905
4ba9f25Thanks@dom96! - Support for Python packages in python_modules dir#9886
17b1e5aThanks@dom96! - Python packages are now read from cf-requirements.txt instead of requirements.txt by default#9899
d6a1b9bThanks@simonabadoiu! - Print local mode when running a browser binding in local mode#9951
e2672c5Thanks@penalosa! - Recommend remote bindings whenwrangler dev --remoteis used#9875
a5d7b35Thanks@gpanders! - Show expected format in error message for "containers images delete"#9954
bf4c9abThanks@penalosa! - Support Images binding ingetPlatformProxy()#9847
14ce577Thanks@penalosa! - Upgrade Undici
... (truncated)
Commits
7d14000Version Packages (#10002)a355327Resolve dockerfile to absolute path in redirected config in vite plugin (#10038)08b37f8Revert "use userConfigPath instead of redirected one (#10005)" (#10037)64d71b1use userConfigPath instead of redirected one (#10005)0c4008cfeat(vite-plugin): Add containers support in vite-plugin (#9819)e87198aFix container diffs when using JSONC config (#10009)b0217f9Require container images use a supported platform (#9996)89cb004refactor asynchronous code (#10017)f7f97decleanup: remove dead code (#10011)7e5585dfix: escape column names and handle mismatched data types in D1 SQL dump (#9866)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions
You can disable automated security fix PRs for this repo from the Security Alerts page.
Pull Request Statistics
0
0
+0
-0
Technical Details
| ID: | 4070558 |
| UUID: | 3254673974 |
| Node ID: | PR_kwDOPRK1s86gLYsc |
| Host: | GitHub |
| Repository: | flowervarela70/https |