Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .changeset/global-config-package.md

This file was deleted.

12 changes: 7 additions & 5 deletions packages/edge-config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @vercel/edge-config

## 1.5.0

## 1.4.3

### Patch Changes
Expand Down Expand Up @@ -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
```

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/edge-config/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
13 changes: 13 additions & 0 deletions packages/global-config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion packages/global-config/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 6 additions & 0 deletions test/next/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vercel-storage-integration-test-suite",
"version": "0.3.25",
"version": "0.3.26",
"private": true,
"scripts": {
"build": "next build",
Expand Down