feat: introduce defaultPersistRoot option#9330
Merged
edmundhung merged 5 commits intomainfrom May 23, 2025
Merged
Conversation
🦋 Changeset detectedLatest commit: a4278d3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
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 |
Contributor
|
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/15215016320/npm-package-wrangler-9330Prereleases for other packages:
wget https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15215016320/npm-package-cloudflare-workers-bindings-extension-9330 -O ./cloudflare-workers-bindings-extension.0.0.0-v2275919a7.vsix && code --install-extension ./cloudflare-workers-bindings-extension.0.0.0-v2275919a7.vsix
npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15215016320/npm-package-create-cloudflare-9330 --no-auto-update
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15215016320/npm-package-cloudflare-kv-asset-handler-9330
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15215016320/npm-package-miniflare-9330
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15215016320/npm-package-cloudflare-pages-shared-9330
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15215016320/npm-package-cloudflare-unenv-preset-9330
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15215016320/npm-package-cloudflare-vite-plugin-9330
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15215016320/npm-package-cloudflare-vitest-pool-workers-9330
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15215016320/npm-package-cloudflare-workers-editor-shared-9330
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15215016320/npm-package-cloudflare-workers-shared-9330
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15215016320/npm-package-cloudflare-workflows-shared-9330Note that these links will no longer work once the GitHub Actions artifact expires. |
44678f8 to
3bba18c
Compare
petebacondarwin
approved these changes
May 23, 2025
Co-authored-by: Pete Bacon Darwin <pete@bacondarwin.com>
g getPersistPath on secret store plugin
57e0956 to
2d19600
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes DEVX-1828
This introduces a
defaultPersistRootsetting that, when provided, is used as the base directory for any plugin (i.e.path.join(defaultPersistRoot, pluginName)) whose persist option isundefinedortrue. Explicit string values for a plugin’s persist path are still honored.This removes the need for both Wrangler and the Vite plugin to set individual persist options as long as all the miniflare plugins continue to derive the persist path using the
getPersistPathhelper. This will not break existing users as well as the result paths match current settings on both Wrangler / Vite plugin.Example:
defaultPersistRoot#9372