Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
4d60069
#12: Initial commit for differential legacy builds implementation
smertelny Nov 4, 2021
b6c04c1
Extracting page data to its own variable; fixes after extraction of data
smertelny Dec 3, 2021
f18844a
(try to) merge branch 'legacy-builds' of github.com:smertelny/kit int…
Tal500 Jul 26, 2022
bd8e24a
Merge branch 'sveltejs:master' into legacy-builds
Tal500 Jul 26, 2022
2ce2297
fixing legacy chunk generation
Tal500 Aug 21, 2022
5f12ccd
Merge branch 'legacy-builds' of github.com:Tal500/kit into legacy-builds
Tal500 Aug 21, 2022
365fc7c
Merge branch 'master' into legacy-builds
Tal500 Aug 21, 2022
992bf32
carefull usage of 'composePath' for legacy
Tal500 Aug 22, 2022
ab16dc1
carefull modern code usage in kit.svelte.dev, for legacy support
Tal500 Aug 22, 2022
be104be
inject scripts on HTML to the right path and add polyfills
Tal500 Aug 22, 2022
9bfd614
install missing & reorder additional legacy polyfills
Tal500 Aug 23, 2022
bc688b0
automatic reorder of dependencies
Tal500 Aug 24, 2022
245525a
clean unused code, and zero-configuration legacy support
Tal500 Aug 24, 2022
4b2d38b
Merge branch 'master' into legacy-builds
Tal500 Aug 24, 2022
e0e11fb
remove the 'legacy' option from svelte.config.js
Tal500 Aug 24, 2022
dd99a84
uninstall terser from kit
Tal500 Aug 24, 2022
9dfaeed
undo svelte versioning
Tal500 Aug 24, 2022
906e488
update&fix? pnpm lock
Tal500 Aug 24, 2022
01a7fc5
improve disable searching on legacy browsers
Tal500 Aug 24, 2022
c67c0fd
use relative import of legacy scripts
Tal500 Aug 24, 2022
2140f56
rename ineternal property to 'legacy_assets' and support modern polyf…
Tal500 Aug 24, 2022
310a770
improve search unsupport display on legacy
Tal500 Aug 24, 2022
7d7bfde
improve legacy&pollyfills script injecting and sharing data, and fixi…
Tal500 Aug 24, 2022
0058384
formatting (and linting just works)
Tal500 Aug 25, 2022
e1faca6
better description
Tal500 Aug 25, 2022
9458254
Merge branch 'master' into legacy-builds
Tal500 Aug 25, 2022
0c75ad1
update the minimal vite version to be the one fixes #9807
Tal500 Aug 25, 2022
47280df
add a describing changeset
Tal500 Aug 25, 2022
81d1d32
add preloading to modern polyfills and make them be loaded earlier
Tal500 Aug 26, 2022
1bb0fc5
fix a bug in search box of site on modern browsers
Tal500 Aug 26, 2022
647c7fb
show better when search is unsupported in the site
Tal500 Aug 26, 2022
dadf8a9
Merge branch 'master' into legacy-builds
Tal500 Aug 28, 2022
aaf9ee4
versioning of the fork
Tal500 Aug 28, 2022
2f7852c
Merge branch 'master' into legacy-builds
Tal500 Aug 31, 2022
c0b7c0e
Merge branch 'master' into legacy-builds
Tal500 Aug 31, 2022
e498176
explicitly tell the client start script if the current mode is legacy…
Tal500 Aug 31, 2022
5530c5f
fix formatting
Tal500 Aug 31, 2022
db50689
downgrade playwright to 1.25.0 in pnpm's lock file
Tal500 Aug 31, 2022
67c98bf
Merge branch 'legacy-builds' into legacy-builds-versioning, and relea…
Tal500 Aug 31, 2022
893ec3b
make the loading script to be self-destructing
Tal500 Sep 2, 2022
fe6b184
fix formatting
Tal500 Sep 2, 2022
23e1907
restore package.json
Tal500 Sep 2, 2022
1357f13
Merge branch 'master' into legacy-builds, and install Svelte>=3.50 in…
Tal500 Sep 2, 2022
90592d4
Merge branch 'master' into legacy-builds
Tal500 Sep 4, 2022
f9c1458
use `host` header for Cross-site validation if `origin` is missing
Tal500 Sep 4, 2022
f7e82b3
add time in `load_data` on legacy, since the script tags are getting …
Tal500 Sep 4, 2022
dd60429
formatting
Tal500 Sep 4, 2022
160516d
Merge branch 'master' into legacy-builds
Tal500 Sep 5, 2022
e7682c1
fix: use `referer` instead of `host` header in cs protection, if orig…
Tal500 Sep 5, 2022
be1e182
fix linting
Tal500 Sep 5, 2022
4ba7b1c
Merge branch 'master' into legacy-builds
Tal500 Sep 7, 2022
8728261
Merge branch 'master' into legacy-builds
Tal500 Sep 10, 2022
2fad78d
use `composedPath` polyfill instead of implementing it
Tal500 Sep 10, 2022
1af12dd
Merge branch 'master' into legacy-builds.
Tal500 Sep 28, 2022
4a2dcf8
specifying script type for respecting HTML standard
Tal500 Oct 1, 2022
46cc4b1
fix credentials header issues with `whatwg-fetch` polyfill
Tal500 Oct 1, 2022
bfa6ad3
Merge branch 'master' into legacy-builds
Tal500 Oct 6, 2022
582aae0
On kit site, check the availability of Web Workers instead of Service…
Tal500 Oct 6, 2022
05b72e7
use `!!import.meta.env.LEGACY` instead of getting it as parameter to …
Tal500 Oct 6, 2022
27ec16c
Merge branch 'master' into legacy-builds
Tal500 Oct 19, 2022
cd11fbd
remove an old typing part
Tal500 Oct 19, 2022
53802e2
minor typo fixes and improving some explanations.
Tal500 Oct 22, 2022
7d32123
avoid using the problematic `var` definition for the startup code on …
Tal500 Oct 22, 2022
f9cf1fd
Merge branch 'master' into legacy-builds
Tal500 Oct 22, 2022
4420bb6
Merge branch 'master' into legacy-builds
Tal500 Nov 12, 2022
4d92610
Merge branch 'master' into legacy-builds
Tal500 Nov 14, 2022
b4aec49
fix minor issue in legacy scripting
Tal500 Nov 15, 2022
ae1f26e
Use `postcss-preset-env` in the site to fix CSS, and support more bro…
Tal500 Nov 15, 2022
b89ce2d
Merge branch 'master' into legacy-builds
Tal500 Nov 15, 2022
712ed62
Add a basic playwright test to emulate legacy browser
Tal500 Nov 15, 2022
fb1a457
cancel polyfill generation in the basic test
Tal500 Nov 15, 2022
e3d7023
add js-indicator to tests, and add a sanity check
Tal500 Nov 15, 2022
4a1ac37
format test
Tal500 Nov 15, 2022
2a609a5
add test command
Tal500 Nov 15, 2022
933f706
add back the accidently removed file
Tal500 Nov 15, 2022
3b09a89
improve tests
Tal500 Nov 15, 2022
6ce3015
register legacy tests in pnpm workspace
Tal500 Nov 15, 2022
5cdd1b0
fix flakiness of dev tests, that happen because of overriding the `da…
Tal500 Nov 16, 2022
b4baede
remove the useless `polyfills: false` config from test
Tal500 Nov 16, 2022
3882ba3
improve legacy test and a case and legacy mode
Tal500 Nov 16, 2022
f9fe5e5
fix a test issue by waiting for JS
Tal500 Nov 16, 2022
0c35ff0
fix formatting
Tal500 Nov 16, 2022
e5dcc6e
Merge master
Tal500 Dec 11, 2022
103da14
Merge branch 'master' into legacy-builds
Tal500 Dec 11, 2022
2d3739e
fix format
Tal500 Dec 11, 2022
41f379b
reset changesets of open PRs in preparation of launch
dummdidumm Dec 14, 2022
9a1f865
Merge branch 'master' into legacy-builds
Tal500 Dec 15, 2022
a5e81ca
Merge branch 'master' into legacy-builds
Tal500 Dec 22, 2022
70fca5f
fix lockfile
Tal500 Dec 22, 2022
b60be61
return&update the changeset file
Tal500 Dec 22, 2022
b291a6c
Merge branch 'master' into legacy-builds
Tal500 Jan 15, 2023
f58ca3c
move the "intersection-observer" dependency of the kit site to `devDe…
Tal500 Jan 15, 2023
841f211
put `browserslist` in `package.json` for simplicity
Tal500 Jan 15, 2023
aee9e15
fix a possible issue with `history.scrollRestoration` on legacy and u…
Tal500 Jan 15, 2023
ffbac7b
fix formatting
Tal500 Jan 15, 2023
33fef71
Merge branch 'master' into legacy-builds
Tal500 Jan 19, 2023
fc48483
clearing duplicated function defs
Tal500 Jan 19, 2023
cd9497c
Merge branch 'master' into legacy-builds
Tal500 Feb 16, 2023
ab09153
Merge branch 'master' into legacy-builds
Tal500 Feb 16, 2023
15fd8b0
fix formatting
Tal500 Feb 16, 2023
cb9f3b7
use the new automatic browserlist file reading instead of parsing it …
Tal500 Feb 16, 2023
be3a632
fix formatting
Tal500 Feb 16, 2023
5429384
Merge branch 'master' into legacy-builds
Tal500 Feb 19, 2023
896ad47
fix legacy file props in dev mode
Tal500 Feb 19, 2023
f3db95f
Merge branch 'master' into legacy-builds
Tal500 Feb 22, 2023
559f1b9
fix the root `<div>` warning
Tal500 Feb 22, 2023
2f61656
better comment about the legacy polyfills order
Tal500 Feb 22, 2023
8853947
improve legacy automated tests
Tal500 Feb 22, 2023
b688721
fix test code
Tal500 Feb 22, 2023
79cd778
Merge branch 'master' into legacy-builds
Tal500 Feb 22, 2023
0041e26
add `legacy/polyfills-loading` tests
Tal500 Feb 22, 2023
2c4d26b
fix excecution code of init in client on a special legacy situation
Tal500 Feb 22, 2023
5d920f2
better testing for legacy polyfill loading
Tal500 Feb 22, 2023
5cb0cbc
fix formatting
Tal500 Feb 22, 2023
ac11253
fix the order of kit script initialization on client
Tal500 Feb 23, 2023
d0b6624
safer and better local constants handling
Tal500 Feb 23, 2023
6448aa1
minor fix on rendered local variable
Tal500 Feb 23, 2023
7fe94b8
fix rendered formatting
Tal500 Feb 23, 2023
4e40b75
load externaly systemjs on polyfills testing when needed
Tal500 Feb 23, 2023
3168b7f
simpler raw import of systemjs for testing
Tal500 Feb 23, 2023
8d19a50
insert the "compact" rule to the general linting
Tal500 Feb 23, 2023
a409693
put systemjs dep on dev, and fix the modern polyfill check
Tal500 Feb 24, 2023
a59f971
minor testing package name fix
Tal500 Feb 24, 2023
bf9e41a
Merge branch 'master' into legacy-builds
Tal500 Mar 17, 2023
0dfc032
Merge branch 'master' into legacy-builds
Tal500 Apr 10, 2023
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
Prev Previous commit
Next Next commit
install missing & reorder additional legacy polyfills
  • Loading branch information
Tal500 committed Aug 23, 2022
commit 9bfd614d43ff1804801e346a2407b1836f2a872f
15 changes: 14 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion sites/kit.svelte.dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,20 @@
"@sveltejs/site-kit": "^2.1.0",
"@types/node": "^16.11.36",
"@vitejs/plugin-legacy": "^2.0.1",
"custom-event-polyfill": "^1.0.7",
"flexsearch": "^0.7.21",
"marked": "^4.0.16",
"prism-svelte": "^0.5.0",
"prismjs": "^1.28.0",
"regenerator-runtime": "^0.13.9",
"shiki-twoslash": "^3.0.2",
"svelte": "^3.48.0",
"terser": ">=5.4.0 <6.0.0",
"typescript": "^4.7.4",
"unorm": "^1.6.0",
"vite": "^3.0.8",
"vite-imagetools": "^4.0.3"
"vite-imagetools": "^4.0.3",
"whatwg-fetch": "^3.6.2"
},
"type": "module"
}
2 changes: 1 addition & 1 deletion sites/kit.svelte.dev/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const config = {
'custom-event-polyfill',
'core-js/modules/es.promise.js',
'whatwg-fetch',
'regenerator-runtime/runtime',
// 'global-this' should be used so 'regenerator-runtime' wouldn't do CSP issues
'core-js/proposals/global-this',
'regenerator-runtime/runtime',
'unorm'
]
}),
Expand Down