Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it begins #5782

Merged
merged 117 commits into from
Aug 8, 2022
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
64a854a
it begins
Rich-Harris Aug 1, 2022
073043f
update some more test fixtures
Rich-Harris Aug 1, 2022
a94516b
update more tests
Rich-Harris Aug 1, 2022
db76eaa
more
Rich-Harris Aug 1, 2022
fe39c17
more
Rich-Harris Aug 1, 2022
726afa5
more
Rich-Harris Aug 1, 2022
576ebf0
more
Rich-Harris Aug 1, 2022
d997b81
last one
Rich-Harris Aug 1, 2022
1a3cbd5
need to add dot: true to catch routes inside .well-known
Rich-Harris Aug 1, 2022
230a796
Merge branch 'migrate-tests' into gh-5748
Rich-Harris Aug 1, 2022
08dd7d2
fixes, update tests
Rich-Harris Aug 1, 2022
b0f714c
fix more tests
Rich-Harris Aug 1, 2022
22a4cbe
fix various things
Rich-Harris Aug 1, 2022
3f3befb
all create_manifest_data unit tests passing
Rich-Harris Aug 1, 2022
93ecbb9
update write_manifest
Rich-Harris Aug 1, 2022
9a4beaf
fix
Rich-Harris Aug 1, 2022
a4d8d04
remove config.kit.routes
Rich-Harris Aug 1, 2022
d1a6c2b
update RequestHandler type
Rich-Harris Aug 1, 2022
886163b
simplify endpoint code
Rich-Harris Aug 1, 2022
e23610d
simplify some more stuff
Rich-Harris Aug 1, 2022
80d4e6a
move respond code into render_page, where it belongs
Rich-Harris Aug 1, 2022
0dd3862
purge all references to stuff
Rich-Harris Aug 1, 2022
33518ca
simplify
Rich-Harris Aug 2, 2022
f7ccfee
vite build completes, albeit with a broken build
Rich-Harris Aug 2, 2022
8f9e258
vite dev now starts
Rich-Harris Aug 2, 2022
3267534
now rendering a blank page
Rich-Harris Aug 2, 2022
ebfee3b
rendering an error page
Rich-Harris Aug 2, 2022
e232dd2
it renders html!
Rich-Harris Aug 2, 2022
c546946
tidy up
Rich-Harris Aug 2, 2022
f3cf58b
get error page rendering correctly
Rich-Harris Aug 2, 2022
4c5036c
add placeholder setHeaders function
Rich-Harris Aug 2, 2022
139fe08
replace CSRComponent with CSRPageNode
Rich-Harris Aug 2, 2022
c87e77b
fix build
Rich-Harris Aug 2, 2022
65f37a2
amp tests passing! now for the client
Rich-Harris Aug 2, 2022
73dfd28
fix create_manifest_data unit tests
Rich-Harris Aug 2, 2022
5d6ed28
Merge branch 'migrate-tests' into gh-5748
Rich-Harris Aug 2, 2022
49125f2
add error/redirect helpers
Rich-Harris Aug 2, 2022
44749c8
rename @sveltejs/kit/data -> @sveltejs/kit
Rich-Harris Aug 2, 2022
1c8ba57
add error/redirect to @sveltejs/kit types
Rich-Harris Aug 2, 2022
d7cc7d5
fixes
Rich-Harris Aug 2, 2022
c968420
fix a slew of typescript errors
Rich-Harris Aug 2, 2022
582e54f
data loading belongs in load_node
Rich-Harris Aug 2, 2022
7cbe763
holy shit the tests are starting to pass
Rich-Harris Aug 2, 2022
c4e081b
update some tests
Rich-Harris Aug 2, 2022
54f0c7c
start working on write_types
Rich-Harris Aug 2, 2022
00b5ca1
science experiment
Rich-Harris Aug 3, 2022
6962dc2
typo
Rich-Harris Aug 3, 2022
e75c68a
i think it basically works
Rich-Harris Aug 3, 2022
a1b6026
expose ServerData as Data when no load is specified
Rich-Harris Aug 3, 2022
0775e8a
Merge branch 'migrate-tests' into gh-5748
Rich-Harris Aug 3, 2022
938f07c
replace magic number
Rich-Harris Aug 3, 2022
d62d594
handle missing GET separately from failure
Rich-Harris Aug 3, 2022
a40c1a5
oops i think i did a bad git
Rich-Harris Aug 3, 2022
35018c7
Merge branch 'migrate-tests' into gh-5748
Rich-Harris Aug 4, 2022
882361c
Merge branch 'migrate-tests' into gh-5748
Rich-Harris Aug 4, 2022
939c824
remove typings tests, these are no longer useful
Rich-Harris Aug 4, 2022
de4580a
tidy
Rich-Harris Aug 4, 2022
5e241d6
use server data if no load is provided
Rich-Harris Aug 4, 2022
86f34db
temporarily disable non-SSR tests
Rich-Harris Aug 4, 2022
35a76fc
apply headers
Rich-Harris Aug 4, 2022
08ca223
update test
Rich-Harris Aug 4, 2022
87d2719
allow load to return void
Rich-Harris Aug 4, 2022
268f470
remove some tests that no longer make sense
Rich-Harris Aug 4, 2022
c171deb
remove some more unused tests
Rich-Harris Aug 4, 2022
d04e5aa
this is fun. delete delete delete
Rich-Harris Aug 4, 2022
fa955b7
fix test
Rich-Harris Aug 4, 2022
ebe35e0
handle accept:json requests
Rich-Harris Aug 4, 2022
262f487
fix test
Rich-Harris Aug 4, 2022
04da619
small tidy up
Rich-Harris Aug 4, 2022
84af4df
tidy
Rich-Harris Aug 4, 2022
8b6f046
simplify
Rich-Harris Aug 4, 2022
81d112c
simplify, improve efficiency
Rich-Harris Aug 4, 2022
ddeb2ff
simplify
Rich-Harris Aug 4, 2022
3efbd56
rename to disambiguate with client
Rich-Harris Aug 5, 2022
8631384
tweaks
Rich-Harris Aug 5, 2022
83d4600
tidy up
Rich-Harris Aug 5, 2022
bcaef09
load data in parallel
Rich-Harris Aug 5, 2022
78d6ab7
throw error pointing to migration if router folder exists but no rout…
dummdidumm Aug 5, 2022
e83e2d2
load nodes on client in parallel
dummdidumm Aug 5, 2022
6f5b7e0
handle redirect
dummdidumm Aug 5, 2022
883fa8b
fix parent usage bug, avoid waterfall when awaiting parents, remove t…
dummdidumm Aug 5, 2022
628a8f8
error handling
Rich-Harris Aug 5, 2022
a6938d0
merge
Rich-Harris Aug 5, 2022
fbd3512
construct redirect URL properly
Rich-Harris Aug 5, 2022
d17d358
fix redirects
Rich-Harris Aug 5, 2022
27a4523
handle POST requests etc
Rich-Harris Aug 5, 2022
55e1e58
oof this took an embarrassingly long time to find
Rich-Harris Aug 5, 2022
ceb6b79
add types
Rich-Harris Aug 5, 2022
ac5b00b
update/remove some tests as appropriate
Rich-Harris Aug 6, 2022
93b1e34
implement $page.data on the server
Rich-Harris Aug 7, 2022
e3c545d
fix test
Rich-Harris Aug 7, 2022
54d2b66
handle invalid redirect statuses
Rich-Harris Aug 7, 2022
82393e5
update test, fix off-by-one error
Rich-Harris Aug 7, 2022
18df10e
fix a bunch more tests
Rich-Harris Aug 7, 2022
3d4b627
tweak tests
Rich-Harris Aug 8, 2022
c329caf
include dynamically imported styles from +page.js in dev
Rich-Harris Aug 8, 2022
70ac75f
same but for build
Rich-Harris Aug 8, 2022
7c98ae7
track cookies
Rich-Harris Aug 8, 2022
b54eb0d
apply tracked cookies
Rich-Harris Aug 8, 2022
0df3d48
down to three failing SSR tests
Rich-Harris Aug 8, 2022
3b82000
render errors
Rich-Harris Aug 8, 2022
8851093
all SSR tests in test/apps/basics passing
Rich-Harris Aug 8, 2022
37db08a
fix write tests
Rich-Harris Aug 8, 2022
3de2fde
all SSR tests passing
Rich-Harris Aug 8, 2022
6ea4dc2
remove a couple of unused deps
Rich-Harris Aug 8, 2022
daa419a
tidy up
Rich-Harris Aug 8, 2022
f473003
dont use instanceof checks
dummdidumm Aug 8, 2022
43d7ef3
fix off-by-one error in client
dummdidumm Aug 8, 2022
f706c2f
client-side fetching, start of redirect/error handling
dummdidumm Aug 8, 2022
1a2843c
re-add missing dist file
dummdidumm Aug 8, 2022
993b925
for now, duplicate route.path logic where needed. in future, rethink …
Rich-Harris Aug 8, 2022
2cb0718
fix parent data retrieval, add $page.data to client
dummdidumm Aug 8, 2022
1f26fd8
fix most prerendering tests
Rich-Harris Aug 8, 2022
b895484
Merge branch 'gh-5748' of github.com:sveltejs/kit into gh-5748
Rich-Harris Aug 8, 2022
ca59228
add cache http-equiv
Rich-Harris Aug 8, 2022
ca24208
test
Rich-Harris Aug 8, 2022
e76a94f
get prerender tests passing
Rich-Harris Aug 8, 2022
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
1 change: 1 addition & 0 deletions packages/kit/src/core/config/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ const get_defaults = (prefix = '') => ({
},
protocol: undefined,
router: undefined,
routes: undefined,
ssr: undefined,
target: undefined,
trailingSlash: 'never',
Expand Down
6 changes: 5 additions & 1 deletion packages/kit/src/core/config/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,11 @@ const options = object(
// TODO remove for 1.0
router: error((keypath) => `${keypath} has been moved to config.kit.browser.router`),

routes: fun((filepath) => !/(?:(?:^_|\/_)|(?:^\.|\/\.)(?!well-known))/.test(filepath)),
// TODO remove for 1.0
routes: error(
(keypath) =>
`${keypath} has been removed. See https://github.com/sveltejs/kit/discussions/5774 for details`
),

serviceWorker: object({
register: boolean(true),
Expand Down
Loading