-
Notifications
You must be signed in to change notification settings - Fork 692
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
fix: KV not setting correctly #964
Conversation
The KV has URL inputs, which in the case of `/` would get collapsed and lost. To handle special characters `encodeURIComponent` is implemented. resolves #961
🦋 Changeset detectedLatest commit: e719993 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2308072889/npm-package-wrangler-964 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/964/npm-package-wrangler-964 Or you can use npx https://prerelease-registry.developers.workers.dev/runs/2308072889/npm-package-wrangler-964 dev path/to/script.js |
|
||
fix: KV not setting correctly | ||
The KV has URL inputs, which in the case of `/` would get collapsed and lost. | ||
T:o handle special characters `encodeURIComponent` is implemented. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops!
… a namespace This cleans up some logic from #964. - we shouldn't be encoding the id when deleting a namespace, since that'll already be an alphanumeric id - we should be encoding the key when we call kv:key get, or we get a similar issue as in #961 - adds `KV` to all the KV-related function names - moves the api calls to `kv:namespace delete` and `kv:key delete` inside `kv.ts` helpers.
… a namespace (#987) This cleans up some logic from #964. - we shouldn't be encoding the id when deleting a namespace, since that'll already be an alphanumeric id - we should be encoding the key when we call kv:key get, or we get a similar issue as in #961 - adds `KV` to all the KV-related function names - moves the api calls to `kv:namespace delete` and `kv:key delete` inside `kv.ts` helpers.
The KV has URL inputs, which in the case of
/
would get collapsed and lost. To handle special charactersencodeURIComponent
is implemented.resolves #961