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 #1284

Merged
merged 1 commit into from
Jun 22, 2022
Merged

Version Packages #1284

merged 1 commit into from
Jun 22, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jun 17, 2022

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]

Patch Changes

[email protected]

Patch Changes

  • #1301 9074990 Thanks @mrbbot! - Upgrade miniflare to 2.5.1

  • #1272 f7d362e Thanks @JacobMGEvans! - feat: print bundle size during publish and dev

    This logs the complete bundle size of the Worker (as well as when compressed) during publish and dev.

    Via feat: log bundle size during dev/publish #405 (comment))

  • #1287 2072e27 Thanks @f5io! - fix: kv:key put/get binary file

    As raised in 🐛 BUG: kv:key put no longer able to upload binary files #1254, it was discovered that binary uploads were being mangled by wrangler 2, whereas they worked in wrangler 1. This is because they were read into a string by providing an explicit encoding of utf-8. This fix reads provided files into a node Buffer that is then passed directly to the request.

    Subsequently 🐛 BUG: kv commands do not roundtrip binary data correctly #1273 was raised in relation to a similar issue with gets from wrangler 2. This was happening due to the downloaded file being converted to utf-8 encoding as it was pushed through console.log. By leveraging process.stdout.write we can push the fetched ArrayBuffer to std out directly without inferring any specific encoding value.

  • #1325 bcd066d Thanks @sidharthachatterjee! - fix: Ensure Response is mutable in Pages functions

  • #1265 e322475 Thanks @petebacondarwin! - fix: support all git versions for wrangler init

    If git does not support the --initial-branch argument then just fallback to the default initial branch name.

    We tried to be more clever about this but there are two many weird corner cases with different git versions on different architectures.
    Now we do our best, with recent versions of git, to ensure that the branch is called main but otherwise just make sure we don't crash.

    Fixes 🐛 BUG: Initializing project with git fails #1228

  • #1311 374655d Thanks @JacobMGEvans! - feat: add --text flag to decode kv:key get response values as utf8 strings

    Previously, all kv values were being rendered directly as bytes to the stdout, which makes sense if the value is a binary blob that you are going to pipe into a file, but doesn't make sense if the value is a simple string.

    resolves feat: add a --text flag to kv:key get #1306

  • #1327 4880d54 Thanks @JacobMGEvans! - feat: resolve --site cli arg relative to current working directory

    Before we were resolving the Site directory relative to the location of wrangler.toml at all times.
    Now the --site cli arg is resolved relative to current working directory.

    resolves 🐛 BUG: --site should resolve relative to cwd, not wrangler.toml #1243

  • #1270 7ed5e1a Thanks @caass! - Delegate to a local install of wrangler if one exists.

    Users will frequently install wrangler globally to run commands like wrangler init, but we also recommend pinning a specific version of wrangler in a project's package.json. Now, when a user invokes a global install of wrangler, we'll check to see if they also have a local installation. If they do, we'll delegate to that version.

  • #1289 0d6098c Thanks @threepointone! - feat: entry point is not mandatory if --assets is passed

    Since we use a facade worker with --assets, an entry point is not strictly necessary. This makes a common usecase of "deploy a bunch of static assets" extremely easy to start, as a one liner npx wrangler dev --assets path/to/folder (and same with publish).

  • #1293 ee57d77 Thanks @petebacondarwin! - fix: do not crash in wrangler dev if user has multiple accounts

    When a user has multiple accounts we show a prompt to allow the user to select which they should use.
    This was broken in wrangler dev as we were trying to start a new ink.js app (to show the prompt)
    from inside a running ink.js app (the UI for wrangler dev).

    This fix refactors the ChooseAccount component so that it can be used directly within another component.

    Fixes multiple accounts + dev = Silent Crash in dev mode #1258

  • #1299 0fd0c30 Thanks @threepointone! - polish: include a copy-pastable message when trying to publish without a compatibility date

  • #1269 fea87cf Thanks @petebacondarwin! - fix: do not consider ancestor files when initializing a project with a specified name

    When initializing a new project (via wrangler init) we attempt to reuse files in the current
    directory, or in an ancestor directory. In particular we look up the directory tree for
    package.json and tsconfig.json and use those instead of creating new ones.

    Now we only do this if you do not specify a name for the new Worker. If you do specify a name,
    we now only consider files in the directory where the Worker will be initialized.

    Fixes 🐛 BUG: wrangler init foo should stop looking for tsconfig.json and package.json at ./foo #859

  • #1321 8e2b92f Thanks @GregBrimble! - fix: Correctly resolve directories for 'wrangler pages publish'

    Previously, attempting to publish a nested directory or the current directory would result in parsing mangled paths which broke deployments. This has now been fixed.

  • #1293 ee57d77 Thanks @petebacondarwin! - fix: do not hang waiting for account choice when in non-interactive mode

    The previous tests for non-interactive only checked the stdin.isTTY, but
    you can have scenarios where the stdin is interactive but the stdout is not.
    For example when writing the output of a kv:key get command to a file.

    We now check that both stdin and stdout are interactive before trying to
    interact with the user.

  • #1275 35482da Thanks @alankemp! - Add environment variable WRANGLER_LOG to set log level

  • #1294 f6836b0 Thanks @threepointone! - fix: serve --assets in dev + local mode

    A quick bugfix to make sure --assets/config.assets gets served correctly in dev --local.

  • #1237 e1b8ac4 Thanks @threepointone! - feat: --assets / config.assets to serve a folder of static assets

    This adds support for defining assets in wrangler.toml. You can configure it with a string path, or a {bucket, include, exclude} object (much like [site]). This also renames the --experimental-public arg as --assets.

    Via RFC: Static Assets with Workers #1162

@github-actions github-actions bot force-pushed the changeset-release/main branch 2 times, most recently from e6484d8 to 9c10966 Compare June 17, 2022 13:53
@rozenmd
Copy link
Contributor

rozenmd commented Jun 17, 2022

Intentional minor @petebacondarwin / @threepointone ?

@threepointone
Copy link
Contributor

@rozenmd whoops, that's a mistake. I'll fix it.

@github-actions github-actions bot force-pushed the changeset-release/main branch 19 times, most recently from 228ffd2 to 34f7c3b Compare June 22, 2022 12:21
@threepointone threepointone merged commit bfbb0be into main Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants