Skip to content

Commit 71019e7

Browse files
authored
Remove native-url Again (vercel#10526)
* Remove `native-url` Again * update comment * update sizes
1 parent d5222f8 commit 71019e7

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

packages/next/build/webpack-config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ function getOptimizedAliases(
106106
'object.assign/polyfill': path.join(shimAssign, 'polyfill.js'),
107107
'object.assign/shim': path.join(shimAssign, 'shim.js'),
108108

109-
// Replace: full URL polyfill with platform-based polyfill
110-
url: require.resolve('native-url'),
109+
// TODO: re-enable when `native-url` supports Safari 10
110+
// // Replace: full URL polyfill with platform-based polyfill
111+
// url: require.resolve('native-url'),
111112
}
112113
)
113114
}

packages/next/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@
115115
"lru-cache": "5.1.1",
116116
"mini-css-extract-plugin": "0.8.0",
117117
"mkdirp": "0.5.1",
118-
"native-url": "0.2.6",
119118
"node-fetch": "2.6.0",
120119
"object-assign": "4.1.1",
121120
"ora": "3.4.0",

test/integration/size-limit/test/index.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ describe('Production response size', () => {
8080
)
8181

8282
// These numbers are without gzip compression!
83-
const delta = responseSizesBytes - 226 * 1024
83+
const delta = responseSizesBytes - 233 * 1024
8484
expect(delta).toBeLessThanOrEqual(1024) // don't increase size more than 1kb
8585
expect(delta).toBeGreaterThanOrEqual(-1024) // don't decrease size more than 1kb without updating target
8686
})
@@ -100,7 +100,7 @@ describe('Production response size', () => {
100100
)
101101

102102
// These numbers are without gzip compression!
103-
const delta = responseSizesBytes - 195 * 1024
103+
const delta = responseSizesBytes - 201 * 1024
104104
expect(delta).toBeLessThanOrEqual(1024) // don't increase size more than 1kb
105105
expect(delta).toBeGreaterThanOrEqual(-1024) // don't decrease size more than 1kb without updating target
106106
})

yarn.lock

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10918,13 +10918,6 @@ native-or-bluebird@^1.2.0:
1091810918
resolved "https://registry.yarnpkg.com/native-or-bluebird/-/native-or-bluebird-1.2.0.tgz#39c47bfd7825d1fb9ffad32210ae25daadf101c9"
1091910919
integrity sha1-OcR7/Xgl0fuf+tMiEK4l2q3xAck=
1092010920

10921-
native-url@0.2.6:
10922-
version "0.2.6"
10923-
resolved "https://registry.yarnpkg.com/native-url/-/native-url-0.2.6.tgz#ca1258f5ace169c716ff44eccbddb674e10399ae"
10924-
integrity sha512-k4bDC87WtgrdD362gZz6zoiXQrl40kYlBmpfmSjwRO1VU0V5ccwJTlxuE72F6m3V0vc1xOf6n3UCP9QyerRqmA==
10925-
dependencies:
10926-
querystring "^0.2.0"
10927-
1092810921
natural-compare@^1.4.0:
1092910922
version "1.4.0"
1093010923
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy