-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Version Packages #4061
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
Version Packages #4061
Conversation
|
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/6422791015/npm-package-wrangler-4061You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/6422791015/npm-package-wrangler-4061Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/6422791015/npm-package-wrangler-4061 dev path/to/script.jsAdditional artifacts:npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/6422791015/npm-package-cloudflare-pages-shared-4061Note that these links will no longer work once the GitHub Actions artifact expires.
| Please ensure constraints are pinned, and |
df3dce7 to
8d19390
Compare
Codecov Report
@@ Coverage Diff @@
## main #4061 +/- ##
==========================================
+ Coverage 75.31% 75.35% +0.03%
==========================================
Files 223 223
Lines 12191 12191
Branches 3151 3151
==========================================
+ Hits 9182 9186 +4
+ Misses 3009 3005 -4 |
8c529dd to
8330fd9
Compare
8330fd9 to
1bab5e6
Compare
1bb722f to
3f0f149
Compare
23833e9 to
d7c6229
Compare
d7c6229 to
301574f
Compare
301574f to
26ddb79
Compare
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
[email protected]
Minor Changes
#4063
cb4309f9Thanks @jculvey! - Bump supported node version to 18.14.1We've recently switched out testing infrastructure to test C3 on node version 18.14.1.
As of earlier this month, Node v16 is no longer supported, and many of the underlying
framework scaffolding tools that C3 uses (ex.
create-astro,gatsby) have droppedsupport for node v16, which in turn causes C3 to fail for those frameworks.
#4065
55298d9fThanks @jculvey! - Add support for bunPatch Changes
#3991
80f78dadThanks @dependabot! - C3: Bumpedcreate-astrofrom4.1.0to4.2.0#4002
8ee46b06Thanks @dependabot! - C3: Bumpedcreate-docusaurusfrom2.4.1to2.4.3#4012
a21acf82Thanks @dependabot! - C3: Bumpedcreate-solidfrom0.2.26to0.3.6#4091
a9cb8c60Thanks @dependabot! - C3: Bumpedcreate-sveltefrom5.0.6to5.1.0#4100
866c7833Thanks @dependabot! - C3: Bumpedcreate-remixfrom2.0.0to2.0.1#4103
f79cf89aThanks @dependabot! - C3: Bumpedcreate-astrofrom4.2.0to4.2.1#4088
35165a26Thanks @jculvey! - Fixes an issue where users were prompted for TypeScript twice during worker creation#4087
57e9f218Thanks @jculvey! - Fixes an issue where exiting early from c3 would cause the terminal cursor to be hidden#3754
811730d8Thanks @RamIdeas! - .gitignore files were not included in our templates due to NPM Publish Doesn't Include .gitignore npm/npm#3763we now workaround this issue and ensure C3 templates include a .gitignore file
#4062
02359bc5Thanks @jculvey! - Defaults the project type toWeb Framework. The previous default was"Hello World" worker#4030
dba26262Thanks @admah! - Fixes Workers templates to have adevcommand in package.json to match comments inindexfiles.#3916
15d75e50Thanks @admah! - fix: update the main file in the c3 scheduled js template to index.js.@cloudflare/[email protected]
Minor Changes
c71d8a0fThanks @mrbbot! - chore: bumpminiflareto3.20231002.0Patch Changes
807ab931Thanks @mrbbot! - chore: bumpminiflareto3.20231002.1[email protected]
Minor Changes
#3726
7d20bdbdThanks @petebacondarwin! - feat: support partial bundling with configurable external modulesSetting
find_additional_modulestotruein your configuration file will now instruct Wrangler to look for files inyour
base_dirthat match your configuredrules, and deploy them as unbundled, external modules with your Worker.base_dirdefaults to the directory containing yourmainentrypoint.Wrangler can operate in two modes: the default bundling mode and
--no-bundlemode. In bundling mode, dynamic imports(e.g.
await import("./large-dep.mjs")) would be bundled into your entrypoint, making lazy loading less effective.Additionally, variable dynamic imports (e.g.
await import(`./lang/${language}.mjs`)) would always fail at runtime,as Wrangler would have no way of knowing which modules to upload. The
--no-bundlemode sought to address these issuesby disabling Wrangler's bundling entirely, and just deploying code as is. Unfortunately, this also disabled Wrangler's
code transformations (e.g. TypeScript compilation,
--assets,--test-scheduled, etc).With this change, we now additionally support partial bundling. Files are bundled into a single Worker entry-point file
unless
find_additional_modulesistrue, and the file matches one of the configuredrules. Seehttps://developers.cloudflare.com/workers/wrangler/bundling/ for more details and examples.
#4093
c71d8a0fThanks @mrbbot! - chore: bumpminiflareto3.20231002.0Patch Changes
#3726
7d20bdbdThanks @petebacondarwin! - fix: ensure that additional modules appear in the out-dirWhen using
find_additional_modules(orno_bundle) we find files thatwill be uploaded to be deployed alongside the Worker.
Previously, if an
outDirwas specified, only the Worker code was outputto this directory. Now all additional modules are also output there too.
#4067
31270711Thanks @mrbbot! - fix: generate valid source maps withwrangler pages devon macOSOn macOS,
wrangler pages devpreviously generated source maps with anincorrect number of
../s in relative paths. This change ensures paths arealways correct, improving support for breakpoint debugging.
#4084
9a7559b6Thanks @RamIdeas! - fix: respect the options.local value in unstable_dev (it was being ignored)#4107
807ab931Thanks @mrbbot! - chore: bumpminiflareto3.20231002.1#3726
7d20bdbdThanks @petebacondarwin! - fix: allow__STATIC_CONTENT_MANIFESTmodule to be imported anywhere__STATIC_CONTENT_MANIFESTcan now be imported in subdirectories when--no-bundleorfind_additional_modulesare enabled.#3926
f585f695Thanks @penalosa! - Log more detail about tokens after authentication errors#3695
1d0b7ad5Thanks @JacksonKearl! - Fixedpages devcrashing and leaving port open when building a worker script fails#4066
c8b4a07fThanks @RamIdeas! - fix: we no longer infer pathnames from route patterns as the hostDuring local development, inside your worker, the host of
request.urlis inferred from theroutesin your config.Previously, route patterns like "*/some/path/name" would infer the host as "some". We now handle this case and determine we cannot infer a host from such patterns.