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

Bring across @cloudflare/kv-asset-handler #4782

Merged
merged 369 commits into from
Feb 9, 2024
Merged

Bring across @cloudflare/kv-asset-handler #4782

merged 369 commits into from
Feb 9, 2024

Conversation

GregBrimble
Copy link
Member

@GregBrimble GregBrimble commented Jan 18, 2024

Adds @cloudflare/kv-asset-handler to workers-sdk.

A slightly wonky #4315.

# /path/to/filter.sh
#!/bin/sh

mkdir -p packages/kv-asset-handler
rsync -avC --remove-source-files . ./packages/kv-asset-handler
# in kv-asset-handler
FILTER_BRANCH_SQUELCH_WARNING=1 git filter-branch --tree-filter '/path/to/filter.sh'
git filter-repo --tag-rename '':'@cloudflare/kv-asset-handler@' --force
git filter-repo --tag-rename '@cloudflare/kv-asset-handler@v':'@cloudflare/kv-asset-handler@' --force
# in workers-sdk
git remote add kv-asset-handler-remote /path/to/kv-asset-handler
git fetch kv-asset-handler-remote
git checkout -b kv-asset-handler
git cherry-pick ..kv-asset-handler-remote/main --strategy-option theirs -m 1
# then spam `git cherry-pick --skip`

image

The only interesting commits are these four:

Copy link

changeset-bot bot commented Jan 18, 2024

⚠️ No Changeset found

Latest commit: 91cca79

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

github-actions bot commented Jan 18, 2024

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/7846804897/npm-package-wrangler-4782

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/4782/npm-package-wrangler-4782

Or you can use npx with this latest build directly:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7846804897/npm-package-wrangler-4782 dev path/to/script.js
Additional artifacts:
npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7846804897/npm-package-create-cloudflare-4782 --no-auto-update
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7846804897/npm-package-cloudflare-kv-asset-handler-4782
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7846804897/npm-package-miniflare-4782
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7846804897/npm-package-cloudflare-pages-shared-4782

Note that these links will no longer work once the GitHub Actions artifact expires.


wrangler@3.28.1 includes the following runtime dependencies:

Package Constraint Resolved
miniflare workspace:* 3.20240129.1
workerd 1.20240129.0 1.20240129.0
workerd --version 1.20240129.0 2024-01-29

Please ensure constraints are pinned, and miniflare/workerd minor versions match.

@Cherry
Copy link
Contributor

Cherry commented Jan 18, 2024

Nice to see this!! Is there any way to bring over the commit history like in #4315 - I feel there's a lot of nuance and history there that would be good to keep?

@GregBrimble GregBrimble force-pushed the kv-asset-handler branch 2 times, most recently from 72d64c0 to 2e01544 Compare January 18, 2024 23:11
@GregBrimble
Copy link
Member Author

Yup, absolutely can do. That's a good shout, thanks! :)

@GregBrimble GregBrimble force-pushed the kv-asset-handler branch 2 times, most recently from 580dc89 to bdf0866 Compare January 18, 2024 23:25
Copy link

codecov bot commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (05360e4) 70.45% compared to head (91cca79) 70.50%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4782      +/-   ##
==========================================
+ Coverage   70.45%   70.50%   +0.05%     
==========================================
  Files         295      295              
  Lines       15409    15409              
  Branches     3948     3948              
==========================================
+ Hits        10856    10864       +8     
+ Misses       4553     4545       -8     

see 6 files with indirect coverage changes

@GregBrimble GregBrimble marked this pull request as ready for review February 8, 2024 04:11
@GregBrimble GregBrimble requested review from a team as code owners February 8, 2024 04:11
@GregBrimble GregBrimble force-pushed the kv-asset-handler branch 2 times, most recently from 28dc4dc to c3faba1 Compare February 8, 2024 04:58
@@ -17,6 +17,9 @@
# C3 ownership
/packages/create-cloudflare/ @cloudflare/c3

# kv-asset-handler ownership
/packages/kv-asset-handler/ @cloudflare/developer-advocacy @kristianfreeman @rickyrobinett @lauragift21 @LoganGrasby @craigsdennis
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Github seems to think some of these users/teams don't exist.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, they need to be added to this repo. cc. @lrapoport-cf

Copy link
Contributor

@petebacondarwin petebacondarwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I think this now opts kv-asset-handler into the Changesets based deployment process, right?

Also is there a PR in flight to "turn off" the old repository so that people don't accidentally deploy from there? And also to transfer and redirect issues to this repo?

@GregBrimble
Copy link
Member Author

It does indeed. That was the primary motivation for it actually, since @cloudflare/kv-asset-handler is solely managed by wrangler-publisher in npm, but no human has the keys to that.

I have magical admin powers to merge this PR and archive the repo once this one is in.

I'll bring across all issues and label them with kv-asset-handler.

dependabot bot and others added 27 commits February 9, 2024 11:26
Bumps [prettier](https://github.com/prettier/prettier) from 2.5.1 to 2.8.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@2.5.1...2.8.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.7.
- [Release notes](https://github.com/minimistjs/minimist/releases)
- [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md)
- [Commits](minimistjs/minimist@v1.2.5...v1.2.7)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](isaacs/minimatch@v3.0.4...v3.1.2)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [normalize-url](https://github.com/sindresorhus/normalize-url) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/sindresorhus/normalize-url/releases)
- [Commits](https://github.com/sindresorhus/normalize-url/commits)

---
updated-dependencies:
- dependency-name: normalize-url
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
This is handled by prettier
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…4.20230115.0 (#364)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [ava](https://github.com/avajs/ava) from 5.1.1 to 5.2.0.
- [Release notes](https://github.com/avajs/ava/releases)
- [Commits](avajs/ava@v5.1.1...v5.2.0)

---
updated-dependencies:
- dependency-name: ava
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@GregBrimble GregBrimble merged commit f78b983 into main Feb 9, 2024
17 checks passed
@GregBrimble GregBrimble deleted the kv-asset-handler branch February 9, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.