Skip to content

Commit 461aa51

Browse files
authored
build: upgrade edge-runtime (vercel#61030)
It exposes `performance` constructor Closes vercel#60433 Closes NEXT-2195
1 parent 0237e60 commit 461aa51

File tree

12 files changed

+105
-117
lines changed

12 files changed

+105
-117
lines changed

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
6767
"@babel/preset-flow": "7.22.5",
6868
"@babel/preset-react": "7.22.5",
69-
"@edge-runtime/jest-environment": "2.3.4",
69+
"@edge-runtime/jest-environment": "2.3.7",
7070
"@emotion/cache": "11.11.0",
7171
"@emotion/react": "11.11.1",
7272
"@fullhuman/postcss-purgecss": "1.3.0",
@@ -257,5 +257,10 @@
257257
"node": ">=18.17.0",
258258
"pnpm": "8.14.2"
259259
},
260-
"packageManager": "pnpm@8.14.2"
260+
"packageManager": "pnpm@8.14.2",
261+
"pnpm": {
262+
"overrides": {
263+
"@edge-runtime/primitives": "4.0.4"
264+
}
265+
}
261266
}

packages/next/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@
137137
"@babel/traverse": "7.22.5",
138138
"@babel/types": "7.22.5",
139139
"@capsizecss/metrics": "1.1.0",
140-
"@edge-runtime/cookies": "4.0.2",
140+
"@edge-runtime/cookies": "4.0.3",
141141
"@edge-runtime/ponyfill": "2.4.1",
142-
"@edge-runtime/primitives": "4.0.2",
142+
"@edge-runtime/primitives": "4.0.5",
143143
"@hapi/accept": "5.0.2",
144144
"@jest/transform": "29.5.0",
145145
"@jest/types": "29.5.0",
@@ -226,7 +226,7 @@
226226
"debug": "4.1.1",
227227
"devalue": "2.0.1",
228228
"domain-browser": "4.19.0",
229-
"edge-runtime": "2.5.4",
229+
"edge-runtime": "2.5.7",
230230
"events": "3.3.0",
231231
"find-up": "4.1.0",
232232
"fresh": "0.5.2",

packages/next/src/compiled/@edge-runtime/cookies/index.d.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
// Type definitions for cookie 0.5
2-
// Project: https://github.com/jshttp/cookie
3-
// Definitions by: Pine Mizune <https://github.com/pine>
4-
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
5-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6-
71
/**
82
* Basic HTTP cookie parser and serializer for HTTP servers.
93
*/
@@ -62,6 +56,17 @@ interface CookieSerializeOptions {
6256
* point to the same date and time.
6357
*/
6458
maxAge?: number | undefined;
59+
/**
60+
* Specifies the `boolean` value for the [`Partitioned` `Set-Cookie`](rfc-cutler-httpbis-partitioned-cookies)
61+
* attribute. When truthy, the `Partitioned` attribute is set, otherwise it is not. By default, the
62+
* `Partitioned` attribute is not set.
63+
*
64+
* **note** This is an attribute that has not yet been fully standardized, and may change in the future.
65+
* This also means many clients may ignore this attribute until they understand it.
66+
*
67+
* More information about can be found in [the proposal](https://github.com/privacycg/CHIPS)
68+
*/
69+
partitioned?: boolean | undefined;
6570
/**
6671
* Specifies the value for the {@link https://tools.ietf.org/html/rfc6265#section-5.2.4|`Path` `Set-Cookie` attribute}.
6772
* By default, the path is considered the "default path".
@@ -193,4 +198,4 @@ declare function parseCookie(cookie: string): Map<string, string>;
193198
/** Parse a `Set-Cookie` header value */
194199
declare function parseSetCookie(setCookie: string): undefined | ResponseCookie;
195200

196-
export { CookieListItem, RequestCookie, RequestCookies, ResponseCookie, ResponseCookies, parseCookie, parseSetCookie, stringifyCookie };
201+
export { type CookieListItem, type RequestCookie, RequestCookies, type ResponseCookie, ResponseCookies, parseCookie, parseSetCookie, stringifyCookie };
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"@edge-runtime/cookies","version":"4.0.2","main":"./index.js","license":"MPL-2.0"}
1+
{"name":"@edge-runtime/cookies","version":"4.0.3","main":"./index.js","license":"MPL-2.0"}

packages/next/src/compiled/@edge-runtime/primitives/encoding.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ declare const TextDecoderConstructor: typeof TextDecoder
33

44

55
declare const atob: (encoded: string) => string
6-
declare const btoa: (str: string) => string
6+
declare const btoa: (input: any) => string
77

88
export { TextDecoderConstructor as TextDecoder, TextEncoderConstructor as TextEncoder, atob, btoa };

packages/next/src/compiled/@edge-runtime/primitives/encoding.js.text.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/next/src/compiled/@edge-runtime/primitives/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ declare class ReadableStreamBYOBReader {
1818
get closed(): Promise<undefined>
1919
cancel(reason?: any): Promise<void>
2020
read<T extends ArrayBufferView>(
21-
view: T
21+
view: T,
2222
): Promise<{ done: false; value: T } | { done: true; value: T | undefined }>
2323
releaseLock(): void
2424
}

packages/next/src/compiled/@edge-runtime/primitives/load.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import * as __index from './index';
2020
* ```
2121
*/
2222
declare function load(
23-
scopedContext: Record<string, unknown>
23+
scopedContext: Record<string, unknown>,
2424
): typeof __index
2525

2626
export { load };
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"@edge-runtime/primitives","version":"4.0.2","main":"./index.js","license":"MPL-2.0"}
1+
{"name":"@edge-runtime/primitives","version":"4.0.4","main":"./index.js","license":"MPL-2.0"}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
declare const _setTimeout: typeof Number
2-
declare const _setInterval: typeof Number
1+
declare const _setTimeout: (callback: () => void, ms?: number) => number
2+
declare const _setInterval: (callback: () => void, ms?: number) => number
33

44
export { _setInterval as setInterval, _setTimeout as setTimeout };

0 commit comments

Comments
 (0)