@cloudflare/workers-auth 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { b as ConfigStorage, A as AuthConfigStorage, U as UserAuthConfig, g as OAuthFlowContext, h as ProfileStore } from '../authentication-error-DcqALFv6.mjs';
2
2
  export { a as AuthenticationError } from '../authentication-error-DcqALFv6.mjs';
3
- import { C as CliDescriptor, a as CloudflareAuth, A as AuthContext, b as CloudflareLoginProps, U as UserPreferences, K as KeyringPreferenceContext, S as SetKeyringPreferenceResult } from '../keyring-preference-DGkctqNO.mjs';
3
+ import { C as CliDescriptor, a as CloudflareAuth, A as AuthContext, b as CloudflareLoginProps, U as UserPreferences, K as KeyringPreferenceContext, S as SetKeyringPreferenceResult } from '../keyring-preference-BUyxOJDK.mjs';
4
4
  import '@cloudflare/workers-utils';
5
5
 
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { createRequire } from 'node:module';
2
- import { createAuthConfigFileHelpers, createPreferences, createKeyringPreference, createFileStorage, createCloudflareAuth, createCloudflareProfileStore } from '../chunk-YWQXTXOY.mjs';
3
- export { AuthenticationError } from '../chunk-SOBRPAPT.mjs';
2
+ import { createAuthConfigFileHelpers, createPreferences, createKeyringPreference, createFileStorage, createCloudflareAuth, createCloudflareProfileStore } from '../chunk-MP32ZADQ.mjs';
3
+ export { AuthenticationError } from '../chunk-H5PZ3FJ2.mjs';
4
4
  import { __name } from '../chunk-VAZEJK55.mjs';
5
5
  import { getEnvironmentVariableFactory, getCloudflareApiEnvironmentFromEnv, getGlobalConfigPath, configFileName } from '@cloudflare/workers-utils';
6
6
  import path from 'node:path';
@@ -111,6 +111,8 @@ var WRANGLER_CLI = {
111
111
  getConfigPath: getGlobalConfigPath,
112
112
  getTemporaryAccountConfigPath: getTemporaryPreviewAccountConfigPath,
113
113
  fileFormat: "toml",
114
+ // Preserve Wrangler's cross-invocation account selection.
115
+ persistAccountSelection: true,
114
116
  accountCachePrefix: "wrangler-account",
115
117
  getConfigFileLabel: /* @__PURE__ */ __name(() => configFileName(void 0), "getConfigFileLabel"),
116
118
  // A getter so any reassignment of the live `DefaultScopeKeys` binding is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/workers-auth",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "Internal OAuth 2.0 + PKCE flow for Cloudflare CLIs. Not intended for external use — APIs may change without notice.",
5
5
  "homepage": "https://github.com/cloudflare/workers-sdk/tree/main/packages/workers-auth#readme",
6
6
  "bugs": {
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "undici": "7.30.1",
40
- "@cloudflare/workers-utils": "0.52.0"
40
+ "@cloudflare/workers-utils": "0.52.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "22.15.17",