Commit 1931877
authored
Remove prefetch from instant config (vercel#92761)
prefetching is now controlled with the prefetch export and this option
is inert on the instant export. this removes the prefetch option as a
valid property on the instant config type.
also updates the ts plugin for this export and adds the definition for
the previously landed prefetch export1 parent 3e847df commit 1931877
222 files changed
Lines changed: 499 additions & 811 deletions
File tree
- packages/next/src
- build/segment-config/app
- server
- app-render
- instant-validation
- typescript/rules
- test
- development/app-dir
- cache-components-dev-warmup/fixtures/with-prefetch-config/app
- apis/[param]
- private-cache
- short-lived-cache
- simple
- successive-caches
- sync-io
- runtime
- static
- cache-components-tasks/fixtures/with-prefetch-config/app/simple
- e2e/app-dir
- instant-validation-build
- app
- (default)
- client-errors
- page-throws-with-suspense
- page-throws
- cookies
- invalid-undeclared-cookie-get-caught
- invalid-undeclared-cookie-get
- invalid-undeclared-cookie-has
- valid-cookies-in-samples
- valid-cookies-passed-to-cache
- valid-cookies-passed-to-client
- gsp/[slug]
- headers
- invalid-undeclared-header-get-caught
- invalid-undeclared-header-get
- invalid-undeclared-header-has
- valid-headers-in-samples
- valid-headers-passed-to-cache
- valid-headers-passed-to-client
- invalid-missing-suspense-around-runtime
- params
- invalid-param-not-provided-caught/[one]/[two]
- invalid-param-not-provided/[one]/[two]
- invalid-undeclared-use-params-caught/[one]/[two]
- invalid-undeclared-use-params/[one]/[two]
- valid-params-in-samples/[one]/[two]
- valid-params-passed-to-cache/[slug]
- valid-params-passed-to-client/[slug]
- valid-use-params/[one]/[two]
- pathname
- invalid-use-pathname-missing-params/[one]/[two]
- valid-use-pathname-catch-all/[...catchAll]
- valid-use-pathname-no-params
- valid-use-pathname-optional-catch-all/[[...optionalCatchAll]]
- valid-use-pathname-route-group/(route-group)
- valid-use-pathname-with-params/[one]/[two]
- samples-precedence/[slug]
- page-overrides
- search-params
- invalid-undeclared-search-param-caught
- invalid-undeclared-search-param
- invalid-undeclared-use-search-params-caught
- invalid-undeclared-use-search-params
- valid-search-params-in-samples
- valid-search-params-passed-to-cache
- valid-search-params-passed-to-client
- valid-use-search-params
- server-errors
- error-passed-to-client-and-ignored
- page-throws-with-suspense
- page-throws
- valid-await-cache-without-suspense
- mixed
- private
- runtime
- static
- valid-suspense-around-runtime
- root-params/[lang]
- invalid-root-param-not-provided-caught
- invalid-root-param-not-provided
- valid-root-param-in-samples
- runtime
- static
- instant-validation-causes
- app
- aliased-export
- indirect-export
- named-export
- reexport
- instant-validation-client/app
- instant-validation-static-shells/fixtures/invalid-blocking-page-below-static/app/blocking-page-below-static
- instant-validation
- app
- default/static
- valid-blocked-children
- valid-blocking-inside-static
- suspense-in-root
- disable-validation
- disable-build
- disable-dev
- in-layout
- in-page-with-outer
- in-page
- head
- invalid-dynamic-viewport-in-blocking-inside-static
- invalid-dynamic-viewport-in-runtime
- invalid-runtime-viewport-in-static
- valid-dynamic-metadata-in-runtime
- valid-runtime-metadata-in-static
- valid-runtime-viewport-in-runtime
- parallel
- both-configs
- @slot
- children-config-with-slot
- conditional-breadcrumbs
- show-both
- blocked
- unblocked
- show-only-breadcrumbs
- blocked
- unblocked
- show-only-children
- blocked
- unblocked
- fork-layout-config-with-slot
- slot-config-children-suspended/@slot
- slot-config-only/@slot
- slot-layout-config/@slot
- slot-runtime-config/@slot
- runtime
- invalid-blocking-inside-runtime
- invalid-sync-io-after-cache-with-cookie-input
- invalid-sync-io-in-generate-metadata
- invalid-sync-io-in-layout-generate-metadata
- invalid-sync-io-in-runtime-with-valid-static-parent
- invalid-sync-io
- missing-suspense-around-dynamic-layout
- missing-suspense-around-dynamic
- static-layout-above-runtime-config/inner
- suspense-around-dynamic
- suspense-too-high
- valid-blocking-inside-runtime
- valid-no-suspense-around-params/[param]
- valid-no-suspense-around-search-params
- valid-sync-io-in-generate-metadata-static-page
- valid-sync-io-in-layout-generate-metadata-static-page
- valid-sync-io-in-static-parent
- static
- blocking-layout
- missing-suspense-around-dynamic
- config-children-preferred
- @other
- config-depth-preference-slot-wins/deeper
- @anotherSlot/still/deep
- [...rest]
- config-depth-preference/deeper
- @anotherSlot
- still/deep
- cross-slot-blocking/inner/deep
- false-below-static
- invalid-blocking-inside-static
- invalid-client-data-blocks-validation
- invalid-client-error-in-parent-blocks-children
- invalid-client-error-in-parent-sibling
- invalid-csr-bailout-blocks-children
- invalid-dynamic-layout-with-loading
- invalid-error-in-node-modules-blocks-children
- invalid-loading-above-route-group/(group)
- missing-suspense-around-dynamic-layout
- missing-suspense-around-dynamic
- missing-suspense-around-params/[param]
- missing-suspense-around-runtime
- missing-suspense-around-search-params
- missing-suspense-in-parallel-route
- @slot
- bar
- foo
- parallel-group-depths-deep-slot-hole
- (b1)/(b2)
- @slot/(g1)/(g2)/(g3)
- parallel-group-depths-shallow-slot-hole
- (b1)/(b2)
- @slot/(g1)/(g2)/(g3)
- parallel-nested-forks
- @slot1
- @slot2a
- @slot2b
- route-group-config-and-segment-config
- (group)
- route-group-config-only/(group)
- route-group-config-with-deeper-segment/(group)
- route-group-deeper-segment-config/(group)/inner
- route-group-segment-config-only
- suspense-around-dynamic
- suspense-too-high
- valid-client-api-in-parent
- dynamic-params/[id]
- search-params
- sync-io
- valid-client-data-does-not-block-validation
- valid-client-error-in-parent-does-not-block-validation
- valid-only-loading-around-dynamic
- prefetch-true-instant/app
- layout-instant
- target-page
- segment-cache
- prefetch-inlining/app
- test-independent-head
- test-runtime-bailout
- test-runtime-parallel
- test-runtime-passthrough
- prefetch-layout-sharing/app/segment-config/runtime-prefetchable
- configured-as-runtime
- configured-as-static
- prefetch-runtime/app
- (default)
- caches
- private-seconds
- private-short-stale
- public-seconds
- public-short-expire-long-stale
- public-short-expire-short-stale
- errors
- error-after-cookies
- sync-io-after-runtime-api
- cookies
- dynamic-params/[id]
- headers
- private-cache
- quickly-expiring-public-cache
- search-params
- fully-static
- in-page
- cookies-only
- cookies
- dynamic-params/[id]
- headers
- search-params
- in-private-cache
- cookies-only
- cookies
- date-now
- dynamic-params/[id]
- headers
- search-params
- passed-to-public-cache
- cookies-only
- cookies
- dynamic-params/[id]
- headers
- search-params
- with-root-param/[lang]
- in-page/root-params
- in-private-cache/root-params
- passed-to-public-cache/root-params
- staleness/app
- runtime-stale-2-minutes
- runtime-stale-4-minutes
- vary-params/app/(main)
- runtime-prefetch-all-vary/[category]/[itemId]
- runtime-prefetch-layout-split/[category]/[itemId]
- runtime-prefetch-metadata/[slug]
- runtime-prefetch-no-vary/[category]/[itemId]
- runtime-prefetch-search-params/target-page
- runtime-prefetch/[category]/[itemId]
- search-params/target-page
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 14 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 32 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 33 | + | |
| 34 | + | |
49 | 35 | | |
50 | 36 | | |
51 | 37 | | |
| |||
56 | 42 | | |
57 | 43 | | |
58 | 44 | | |
59 | | - | |
| 45 | + | |
60 | 46 | | |
61 | 47 | | |
62 | 48 | | |
| |||
65 | 51 | | |
66 | 52 | | |
67 | 53 | | |
68 | | - | |
| 54 | + | |
69 | 55 | | |
70 | 56 | | |
71 | 57 | | |
72 | 58 | | |
73 | | - | |
| 59 | + | |
74 | 60 | | |
75 | | - | |
76 | 61 | | |
77 | 62 | | |
78 | 63 | | |
79 | 64 | | |
80 | 65 | | |
81 | 66 | | |
82 | 67 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
90 | 73 | | |
91 | 74 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 75 | + | |
| 76 | + | |
95 | 77 | | |
96 | 78 | | |
97 | 79 | | |
98 | 80 | | |
99 | 81 | | |
100 | 82 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | 83 | | |
109 | 84 | | |
110 | 85 | | |
| |||
212 | 187 | | |
213 | 188 | | |
214 | 189 | | |
215 | | - | |
| 190 | + | |
216 | 191 | | |
217 | 192 | | |
218 | 193 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
| 52 | + | |
55 | 53 | | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1155 | 1155 | | |
1156 | 1156 | | |
1157 | 1157 | | |
1158 | | - | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
1159 | 1162 | | |
1160 | 1163 | | |
1161 | 1164 | | |
| |||
1243 | 1246 | | |
1244 | 1247 | | |
1245 | 1248 | | |
1246 | | - | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
1247 | 1253 | | |
1248 | 1254 | | |
1249 | 1255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments