diff --git a/.changeset/global-config-package.md b/.changeset/global-config-package.md deleted file mode 100644 index 244f98534..000000000 --- a/.changeset/global-config-package.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@vercel/global-config': minor ---- - -Introduce `@vercel/global-config` as the new name for `@vercel/edge-config`. - -The package is a drop-in replacement: all existing exports are unchanged, and the exported types are additionally aliased as `GlobalConfigClient`, `GlobalConfigItems`, `GlobalConfigValue` and `EmbeddedGlobalConfig`. - -The default client now reads the connection string from `process.env.GLOBAL_CONFIG`, falling back to `process.env.EDGE_CONFIG` if it is not defined. The same applies to `GLOBAL_CONFIG_TRACE_VERBOSE` and `GLOBAL_CONFIG_DISABLE_DEVELOPMENT_SWR`. - -Connection strings using `https://global-config.vercel.com` are now supported, in addition to the existing `https://edge-config.vercel.com` and `edge-config:` formats. diff --git a/packages/edge-config/CHANGELOG.md b/packages/edge-config/CHANGELOG.md index 28eab7e2c..f52cb9288 100644 --- a/packages/edge-config/CHANGELOG.md +++ b/packages/edge-config/CHANGELOG.md @@ -1,5 +1,7 @@ # @vercel/edge-config +## 1.5.0 + ## 1.4.3 ### Patch Changes @@ -85,8 +87,8 @@ It used to be possible to change the returned value as shown in this example: ```typescript - import { get } from '@vercel/edge-config'; - const countries = await get('allowedCountryCodes'); + import { get } from "@vercel/edge-config"; + const countries = await get("allowedCountryCodes"); countries.DE = true; // Will now cause TypeScript to error ``` @@ -95,11 +97,11 @@ If there is a need to modify the value, then the `clone` function can be used to clone the data and make it modifiable. ```typescript - import { get, clone } from '@vercel/edge-config'; + import { get, clone } from "@vercel/edge-config"; - const myArray = await get('listOfAllowedIPs'); + const myArray = await get("listOfAllowedIPs"); const myArrayClone = clone(myArray); // Clones the data to make it modifiable - myArrayClone.push('127.0.0.1'); // The `push` operation will work now + myArrayClone.push("127.0.0.1"); // The `push` operation will work now ``` - **BREAKING CHANGE** SDK now throws underlying errors diff --git a/packages/edge-config/package.json b/packages/edge-config/package.json index d12194138..17f7ea402 100644 --- a/packages/edge-config/package.json +++ b/packages/edge-config/package.json @@ -1,6 +1,6 @@ { "name": "@vercel/edge-config", - "version": "1.4.3", + "version": "1.5.0", "description": "Ultra-low latency data at the edge", "homepage": "https://vercel.com", "repository": { diff --git a/packages/global-config/CHANGELOG.md b/packages/global-config/CHANGELOG.md new file mode 100644 index 000000000..bc0791d5d --- /dev/null +++ b/packages/global-config/CHANGELOG.md @@ -0,0 +1,13 @@ +# @vercel/global-config + +## 1.5.0 + +### Minor Changes + +- 5c2d8bf: Introduce `@vercel/global-config` as the new name for `@vercel/edge-config`. + + The package is a drop-in replacement: all existing exports are unchanged, and the exported types are additionally aliased as `GlobalConfigClient`, `GlobalConfigItems`, `GlobalConfigValue` and `EmbeddedGlobalConfig`. + + The default client now reads the connection string from `process.env.GLOBAL_CONFIG`, falling back to `process.env.EDGE_CONFIG` if it is not defined. The same applies to `GLOBAL_CONFIG_TRACE_VERBOSE` and `GLOBAL_CONFIG_DISABLE_DEVELOPMENT_SWR`. + + Connection strings using `https://global-config.vercel.com` are now supported, in addition to the existing `https://edge-config.vercel.com` and `edge-config:` formats. diff --git a/packages/global-config/package.json b/packages/global-config/package.json index 47f1714bd..63b5e902a 100644 --- a/packages/global-config/package.json +++ b/packages/global-config/package.json @@ -1,6 +1,6 @@ { "name": "@vercel/global-config", - "version": "1.4.3", + "version": "1.5.0", "description": "Ultra-low latency data", "homepage": "https://vercel.com", "repository": { diff --git a/test/next/CHANGELOG.md b/test/next/CHANGELOG.md index 7ad07020c..48abf13f9 100644 --- a/test/next/CHANGELOG.md +++ b/test/next/CHANGELOG.md @@ -1,5 +1,11 @@ # vercel-storage-integration-test-suite +## 0.3.26 + +### Patch Changes + +- @vercel/edge-config@1.5.0 + ## 0.3.25 ### Patch Changes diff --git a/test/next/package.json b/test/next/package.json index f66fe5aba..171f8bd99 100644 --- a/test/next/package.json +++ b/test/next/package.json @@ -1,6 +1,6 @@ { "name": "vercel-storage-integration-test-suite", - "version": "0.3.25", + "version": "0.3.26", "private": true, "scripts": { "build": "next build",