Skip to content
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 #5104

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/c3-frameworks-update-5074.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/c3-frameworks-update-5075.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/c3-frameworks-update-5078.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/happy-tools-approve.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/six-pans-marry.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/tricky-beers-push.md

This file was deleted.

4 changes: 2 additions & 2 deletions .github/changeset-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function main() {

// 2. Run standard `changeset version` command to apply changesets, bump
// versions, and update changelogs
execSync("pnpm exec changeset version");
execSync("pnpm exec changeset version", { stdio: "inherit" });

// 3. Force `miniflare`'s minor version to be the same as `workerd`
const miniflarePkg = getPkg(miniflarePkgPath);
Expand Down Expand Up @@ -126,7 +126,7 @@ function main() {
}

// 4. Update the lockfile
console.log(execSync("pnpm install --lockfile-only", { encoding: "utf8" }));
execSync("pnpm install --lockfile-only", { stdio: "inherit" });
}

if (require.main === module) main();
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- "changeset-debugging"

jobs:
release:
Expand Down
2 changes: 1 addition & 1 deletion fixtures/sites-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"author": "",
"main": "index.js",
"dependencies": {
"@cloudflare/kv-asset-handler": "~0.2.0"
"@cloudflare/kv-asset-handler": "workspace:*"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
"gen:package": "turbo gen package"
},
"dependencies": {
"@changesets/changelog-github": "^0.4.5",
"@changesets/cli": "^2.22.0",
"@ianvs/prettier-plugin-sort-imports": "4.1.0",
"@types/node": "^20.0.0",
"cross-env": "^7.0.3",
Expand All @@ -42,6 +40,8 @@
},
"devDependencies": {
"@actions/artifact": "^2.0.1",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@cloudflare/workers-types": "^4.20230821.0",
"@turbo/gen": "^1.10.13",
"@vue/compiler-sfc": "^3.3.4",
Expand Down
28 changes: 28 additions & 0 deletions packages/create-cloudflare/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# create-cloudflare

## 2.13.0

### Minor Changes

- [#5080](https://github.com/cloudflare/workers-sdk/pull/5080) [`2aa7913`](https://github.com/cloudflare/workers-sdk/commit/2aa79132f2db770c85e99c62336aebbe9af96a8e) Thanks [@jculvey](https://github.com/jculvey)! - feature: Use new `vite-cloudflare` template in Remix projects.

Remix has released a [new official Cloudflare template](https://remix.run/docs/en/main/future/vite#cloudflare-proxy) that uses `getPlatformProxy` under the hood to provide better support for bindings in dev. Remix projects created with C3 will now use this new template.

Along with this change, projects will use the default vite-based dev command from `create-remix` instead of using `wrangler pages dev` on build output.

A new `build-cf-types` script has also been added to re-generate the `Env` type defined in `load-context.ts` based on the contents of `wrangler.toml`. A default `wrangler.toml` will be added to new Remix projects to accomodate this workflow.

- [#5072](https://github.com/cloudflare/workers-sdk/pull/5072) [`cab7e1c`](https://github.com/cloudflare/workers-sdk/commit/cab7e1c7f24ff0097e15d90030c805fe2785d173) Thanks [@jculvey](https://github.com/jculvey)! - feature: Improve bindings support in Astro template.

C3 will now create Astro projects configured to use miniflare in dev automatically. This is done by adding a configuration for the adapter of `{ runtime: 'local'}` (see [Astro docs](https://docs.astro.build/en/guides/integrations-guide/cloudflare/#runtime) for more details). A `wrangler.toml` file will also be added where bindings can be added to be used in dev.

Along with this change, projects will now use the default vite-based `astro dev` command instead of using `wrangler pages dev` on build output.

When Typescript is used, the `src/env.d.ts` file will be updated to add type definitions `runtime.env` which can be re-generated with a newly added `build-cf-types` script.

### Patch Changes

- [#5074](https://github.com/cloudflare/workers-sdk/pull/5074) [`e37c1b8`](https://github.com/cloudflare/workers-sdk/commit/e37c1b8665a3c99873da21c0be7a2fed1d165149) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: Bumped `create-svelte` from `6.0.8` to `6.0.9`

- [#5075](https://github.com/cloudflare/workers-sdk/pull/5075) [`c1ed773`](https://github.com/cloudflare/workers-sdk/commit/c1ed7737626bce9930a1fb0fcb28373fd45c4401) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: Bumped `create-remix` from `2.7.1` to `2.7.2`

- [#5078](https://github.com/cloudflare/workers-sdk/pull/5078) [`64236b0`](https://github.com/cloudflare/workers-sdk/commit/64236b0bf837e8cc31c5886c31d10a8d387f57bd) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: Bumped `@angular/create` from `17.2.0` to `17.2.1`

## 2.12.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/create-cloudflare/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-cloudflare",
"version": "2.12.1",
"version": "2.13.0",
"description": "A CLI for creating and deploying new applications to Cloudflare.",
"keywords": [
"cloudflare",
Expand Down
7 changes: 7 additions & 0 deletions packages/vitest-pool-workers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @cloudflare/vitest-pool-workers

## 0.0.4

### Patch Changes

- Updated dependencies [[`c2f3f1e`](https://github.com/cloudflare/workers-sdk/commit/c2f3f1e37c1a8f0958676306f3128cd87265ea5b)]:
- wrangler@3.30.0

## 0.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest-pool-workers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cloudflare/vitest-pool-workers",
"version": "0.0.3",
"version": "0.0.4",
"private": true,
"main": "dist/pool/index.mjs",
"types": "test/cloudflare-test.d.ts",
Expand Down
17 changes: 16 additions & 1 deletion packages/wrangler/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# wrangler

## 3.30.0

### Minor Changes

- [#4742](https://github.com/cloudflare/workers-sdk/pull/4742) [`c2f3f1e`](https://github.com/cloudflare/workers-sdk/commit/c2f3f1e37c1a8f0958676306f3128cd87265ea5b) Thanks [@benycodes](https://github.com/benycodes)! - feat: allow preserving file names when defining rules for non-js modules

The developer is now able to specify the `preserve_file_names property in wrangler.toml
which specifies whether Wrangler will preserve the file names additional modules that are
added to the deployment bundle of a Worker.

If not set to true, files will be named using the pattern ${fileHash}-${basename}.
For example, `34de60b44167af5c5a709e62a4e20c4f18c9e3b6-favicon.ico`.

Resolves [#4741](https://github.com/cloudflare/workers-sdk/issues/4741)

## 3.29.0

### Minor Changes
Expand Down Expand Up @@ -5531,7 +5546,7 @@ Fixes https://github.com/cloudflare/workers-sdk/issues/1026
```jsx
import SomeDependency from "some-dependency.js";

addEventListener("fetch", event => {});
addEventListener("fetch", (event) => {});
```

`wrangler` 1.x would resolve `import SomeDependency from "some-dependency.js";` to the file `some-dependency.js`. This will work in `wrangler` v2, but it will log a deprecation warning. Instead, you should rewrite the import to specify that it's a relative path, like so:
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wrangler",
"version": "3.29.0",
"version": "3.30.0",
"description": "Command-line interface for all things Cloudflare Workers",
"keywords": [
"wrangler",
Expand Down
Loading
Loading