-
Notifications
You must be signed in to change notification settings - Fork 733
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
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-4061 You 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-4061 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/6422791015/npm-package-wrangler-4061 dev path/to/script.js Additional artifacts:npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/6422791015/npm-package-cloudflare-pages-shared-4061 Note 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
create-cloudflare@2.4.0
Minor Changes
#4063
cb4309f9
Thanks @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
55298d9f
Thanks @jculvey! - Add support for bunPatch Changes
#3991
80f78dad
Thanks @dependabot! - C3: Bumpedcreate-astro
from4.1.0
to4.2.0
#4002
8ee46b06
Thanks @dependabot! - C3: Bumpedcreate-docusaurus
from2.4.1
to2.4.3
#4012
a21acf82
Thanks @dependabot! - C3: Bumpedcreate-solid
from0.2.26
to0.3.6
#4091
a9cb8c60
Thanks @dependabot! - C3: Bumpedcreate-svelte
from5.0.6
to5.1.0
#4100
866c7833
Thanks @dependabot! - C3: Bumpedcreate-remix
from2.0.0
to2.0.1
#4103
f79cf89a
Thanks @dependabot! - C3: Bumpedcreate-astro
from4.2.0
to4.2.1
#4088
35165a26
Thanks @jculvey! - Fixes an issue where users were prompted for TypeScript twice during worker creation#4087
57e9f218
Thanks @jculvey! - Fixes an issue where exiting early from c3 would cause the terminal cursor to be hidden#3754
811730d8
Thanks @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
02359bc5
Thanks @jculvey! - Defaults the project type toWeb Framework
. The previous default was"Hello World" worker
#4030
dba26262
Thanks @admah! - Fixes Workers templates to have adev
command in package.json to match comments inindex
files.#3916
15d75e50
Thanks @admah! - fix: update the main file in the c3 scheduled js template to index.js.@cloudflare/pages-shared@0.10.0
Minor Changes
c71d8a0f
Thanks @mrbbot! - chore: bumpminiflare
to3.20231002.0
Patch Changes
807ab931
Thanks @mrbbot! - chore: bumpminiflare
to3.20231002.1
wrangler@3.11.0
Minor Changes
#3726
7d20bdbd
Thanks @petebacondarwin! - feat: support partial bundling with configurable external modulesSetting
find_additional_modules
totrue
in your configuration file will now instruct Wrangler to look for files inyour
base_dir
that match your configuredrules
, and deploy them as unbundled, external modules with your Worker.base_dir
defaults to the directory containing yourmain
entrypoint.Wrangler can operate in two modes: the default bundling mode and
--no-bundle
mode. 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-bundle
mode 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_modules
istrue
, and the file matches one of the configuredrules
. Seehttps://developers.cloudflare.com/workers/wrangler/bundling/ for more details and examples.
#4093
c71d8a0f
Thanks @mrbbot! - chore: bumpminiflare
to3.20231002.0
Patch Changes
#3726
7d20bdbd
Thanks @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
outDir
was specified, only the Worker code was outputto this directory. Now all additional modules are also output there too.
#4067
31270711
Thanks @mrbbot! - fix: generate valid source maps withwrangler pages dev
on macOSOn macOS,
wrangler pages dev
previously generated source maps with anincorrect number of
../
s in relative paths. This change ensures paths arealways correct, improving support for breakpoint debugging.
#4084
9a7559b6
Thanks @RamIdeas! - fix: respect the options.local value in unstable_dev (it was being ignored)#4107
807ab931
Thanks @mrbbot! - chore: bumpminiflare
to3.20231002.1
#3726
7d20bdbd
Thanks @petebacondarwin! - fix: allow__STATIC_CONTENT_MANIFEST
module to be imported anywhere__STATIC_CONTENT_MANIFEST
can now be imported in subdirectories when--no-bundle
orfind_additional_modules
are enabled.#3926
f585f695
Thanks @penalosa! - Log more detail about tokens after authentication errors#3695
1d0b7ad5
Thanks @JacksonKearl! - Fixedpages dev
crashing and leaving port open when building a worker script fails#4066
c8b4a07f
Thanks @RamIdeas! - fix: we no longer infer pathnames from route patterns as the hostDuring local development, inside your worker, the host of
request.url
is inferred from theroutes
in 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.