mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-11 19:04:30 +00:00
23 KiB
23 KiB
sapper changelog
0.27.2
0.27.1
- Prevent infinite loop if
preloaderrors (#677) - Allow disabling of live reload (#683)
- Let browser handle initial scroll (#331)
- Allow custom route file extensions via
--ext(#632) - Wait for server to restart before attaching debugger (#694)
- Fix export queue (#698)
- Rerun
preloadfunctions when query changes (#701) - Navigate when spread route changes (#688)
0.27.0
0.26.1
- Handle skipped segments (#663)
0.26.0
- Update to Svelte 3
- Slot-based nested routes (#573)
- Make
page,preloadingandsessionstores available to components (#642) - Handle missing/empty refs when exporting (#602)
- Prevent race condition when exporting (#585)
- Fix redirects with base path (#589)
- Add
<link rel="preload">to exported HTML (#568) - Handle deep links that are invalid selectors on initial load (#516)
- Use shared queue for exporting (#604)
- Handle
+character in query string (#618) - Spread routes (#545)
- Fix navigation from
/a/[id]to/b/[id](#610) - Allow
preloadfunctions to return falsy values (#587) - Mount error pages correctly (#620)
0.25.0
- Force refresh on
goto(current_url)(#484) - Fix preloading navigation bug (#532)
- Don't mutate opts.headers (#528)
- Don't crawl hundreds of pages simultaneously (#369)
0.24.3
0.24.2
- Support Rollup 1.0 (#541)
0.24.1
- Include CSS chunks in webpack build info to avoid duplication (#529)
- Fix preload
asfor styles (#530)
0.24.0
- Handle external URLs in
this.redirect(#490) - Strip leading
/from basepath (#495) - Treat duplicate query string parameters as arrays (#497)
- Don't buffer
stdoutandstderr(#305) - Posixify
build_dir(#498) - Use
page[XY]Offsetinstead ofscroll[XY](#480)
0.23.5
- Include lazily-imported CSS in main CSS chunk (#492)
- Make search param decoding spec-compliant (#493)
- Handle async route errors (#488)
0.23.4
- Ignore empty anchors when exporting (#491)
0.23.3
- Clear
errorandstatuson successful render (#477)
0.23.2
- Fix entry point CSS (#471)
0.23.1
0.23.0
- Overhaul internal APIs (#468)
- Remove unused
sapper startandsapper upgrade(#468) - Remove magic environment variables (#469)
- Preserve SSI comments (#470)
0.22.10
0.22.9
- Fix legacy builds (#462)
0.22.8
- Ensure CSS placeholders are overwritten (#462)
0.22.7
- Fix cookies (#460)
0.22.6
0.22.5
- Fix
sapper dev. Oops.
0.22.4
- Ensure launcher does not overwrite a module (#455)
0.22.3
- Prevent server from accidentally importing dev client
0.22.2
- Make paths in generated code relative to project
0.22.1
- Fix
pkg.files
0.22.0
- Move generated files into
__sapper__(#453) - Change default build and export directories to
__sapper__/buildand__sapper__/export(#453)
0.21.1
- Read template from build directory in production
0.21.0
0.20.4
0.20.3
- Inject
nonceattribute ifres.locals.nonceis present (#424) - Prevent service worker caching (#428)
- Consistent caching for HTML responses (#429)
0.20.2
- Add
immutablecache control header for hashed assets (#425) - Handle value-less query string params (#426)
0.20.1
- Update shimport
0.20.0
- Decode
req.paramsandreq.query(#417) - Decode URLs before writing files in
sapper export(#414) - Generate server sourcemaps for Rollup apps in dev mode (#418)
0.19.3
- Better unicode route handling (#347)
0.19.2
- Ignore editor tmp files (#220)
- Ignore clicks an
<a>element withouthref(#235) - Allow routes that are reserved JavaScript words (#315)
- Print out webpack errors (#403)
0.19.1
- Don't include local origin in export redirects (#409)
0.19.0
0.18.7
- Support differential bundling for Rollup apps via a
--legacyflag (#280)
0.18.6
- Bundle missing dependency
0.18.5
- Bugfix
0.18.4
0.18.3
- Fix service worker Rollup build config
0.18.2
- Update
pkg.files
0.18.1
- Add live reloading (#385)
0.18.0
0.17.1
- Print which file is causing build errors/warnings (#371)
0.17.0
- Use
cheap-watchinstead ofchokidar(#364)
0.16.1
- Fix file watching regression in previous version
0.16.0
- Slim down installed package (#363)
0.15.8
- Only set
preloading: trueon navigation, not prefetch (#352) - Provide fallback for missing preload errors (#361)
0.15.7
0.15.6
- Fix exporting with custom basepath (#342)
0.15.5
- Faster
exportwith more explanatory output (#335) - Only blur
activeElementif it exists (#332) - Don't emit
client_info.jsonorserver_info.json(#318)
0.15.4
- Add
ignoreoption (#326)
0.15.3
0.15.2
- Collapse component chains where no intermediate layout component is specified (#312)
0.15.1
- Prevent confusing error when no root layout is specified
0.15.0
- Nested routes (consult migration guide and docs on layouts) (#262)
0.14.2
- Prevent unsafe replacements (#307)
0.14.1
- Route parameters can be qualified with regex characters (#283)
0.14.0
4xx.htmland5xx.htmlare replaced with_error.html(#209)- Treat
foo/index.json.jsandfoo.json.jsas equivalents (#297) - Return a promise from
goto(#270) - Use store when rendering error pages (#293)
- Prevent console errors when visiting an error page (#279)
0.13.6
- Fix
baseUrlsynthesis (#296)
0.13.5
- Fix handling of fatal errors (#289)
0.13.4
- Focus
<body>after navigation (#287) - Fix timing of hot reload updates
- Emit
fatalevent if server crashes (#285) - Emit
stdoutandstderrevents on dev watcher (#285) - Always refresh client assets in dev (#286)
- Correctly initialise rebuild stats
0.13.3
- Make
fatalevents clonable for IPC purposes
0.13.2
- Emit a
basepathevent (#284)
0.13.1
- Reinstate ten-second interval between dev server heartbeats (#276)
0.13.0
- Expose
dev,build,exportandfind_pageAPIs (#272)
0.12.0
- Each app has a single
<App>component. See the migration guide for more information (#157) - Process exits with error code 1 if build/export fails (#208)
0.11.1
- Limit routes with leading dots to
.well-knownURIs (#252) - Allow server routes to sit in front of pages (#236)
0.11.0
- Create launcher file (#240)
- Only keep necessary parts of webpack stats (#251)
- Allow
NODE_ENVto be overridden when building (#241)
0.10.7
- Allow routes to have a leading
.(#243) - Only encode necessary characters in routes (#234)
- Preserve existing
process.envwhen exporting (#245)
0.10.6
- Fix error reporting in
sapper start
0.10.5
- Fix missing service worker (#231)
0.10.4
- Upgrade chokidar, this time with a fix (#227)
0.10.3
- Downgrade chokidar (#212)
0.10.2
- Attach
storeto error pages - Fix sorting edge case (#215)
0.10.1
- Fix server-side
fetchpaths (#207)
0.10.0
- Support mounting on a path (this requires
app/template.htmlto include%sapper.base%) (#180) - Support per-request server-side
Storewith client-side hydration (#178) - Add
this.fetchtopreload, with credentials support (#178) - Exclude sourcemaps from preload links and
<script>block (#204) - Register service worker in
<script>block
0.9.6
- Whoops —
tslibis a runtime dependency
0.9.5
- Stringify clorox output (#197)
0.9.4
- Add
SAPPER_BASEandSAPPER_APPenvironment variables (#181) - Minify template in
sapper build(#15) - Minify all HTML files in
sapper export(#172) - Log exported files (#195)
- Add
--open/-oflag tosapper devandsapper start(#186)
0.9.3
- Fix path to
sapper-dev-client
0.9.2
- Include
distfiles in package
0.9.1
- Include
sapperbin
0.9.0
- Use
devalueinstead ofserialize-javascript, allowingpreloadto return non-POJOs and cyclical/repeated references, but not functions (#112) - Kill child process if webpack crashes (#177)
- Support HMR on remote devices (#165)
- Remove hard-coded port ((#169))
- Allow non-JS files, e.g. TypeScript to be used as entry points and server routes (#57)
- Faster startup (#173)
0.8.4
- Fix route sorting (#175)
0.8.3
- Automatically select available port, or use
--portflag fordevandstart(#169) - Show stats after build/export (#168)
- Various CLI improvements (#170)
0.8.2
- Rename
preloadRoutestoprefetchRoutes(#166)
0.8.1
- Add
sapper startcommand, for running an app built withsapper build(#163)
0.8.0
- Update to webpack 4
- Add
preloadRoutesfunction — secondary routes are no longer automatically preloaded (#160) sapper buildoutputs tobuild,sapper build custom-diroutputs tocustom-dir(#150)sapper exportoutputs toexport,sapper export custom-diroutputs tocustom-dir(#150)- Improved logging (#158)
- URI-encode routes (#103)
- Various performance and stability improvements (#152)
0.7.6
- Prevent client-side navigation to server route (#145)
- Don't serve error page for server route errors (#138)
0.7.5
- Allow dynamic parameters inside route parts (#139)
0.7.4
0.7.3
- Handle webpack assets that are arrays instead of strings (#131)
- Wait for new server to start before broadcasting HMR update (#129)
0.7.2
- Add
hmr-client.jsto package - Wait until first successful client build before creating service-worker.js
0.7.1
- Add missing
tslibdependency
0.7.0
- Restructure app layout (see migration guide) (#126)
- Support
this.redirect(status, location)andthis.error(status, error)inpreloadfunctions (#127) - Add
sapper devcommand - Add
sapper --helpcommand
0.6.4
- Prevent phantom HMR requests in production mode (#114)
0.6.3
- Ignore non-HTML responses when crawling during
export - Build in prod mode for
export
0.6.2
- Handle unspecified type in
sapper export
0.6.1
- Fix
pkg.filesandpkg.bin
0.6.0
- Hydrate on first load, and only on first load (#93)
- Identify clashes between page and server routes (#96)
- Remove Express-specific utilities, for compatbility with Polka et al (#94)
- Return a promise from
initwhen first page has rendered (#99) - Handle invalid hash links (#104)
- Avoid
URLSearchParams(#107) - Don't automatically set
Content-Typefor server routes (#111) - Handle empty query string routes, e.g.
/?(#105)
0.5.1
- Only write service-worker.js to filesystem in dev mode (#90)
0.5.0
0.4.0
%sapper.main%has been replaced with%sapper.scripts%(#86)- Node 6 support (#67)
- Explicitly load css-loader and style-loader (#72)
- DELETE requests are handled with
delexports (#77) - Send preloaded data for first route to client, where possible (#3)
0.3.2
- Expose
prefetchfunction (#61)
0.3.1
- Fix missing
runtime.js
0.3.0
- Move
sapper/runtime/app.jstosapper/runtime.js - Cancel navigation if overtaken by second navigation (#48)
- Store preloaded data, to avoiding double prefetching (#49)
- Pass server request object to
preload(#54) - Nested routes (#55)
0.2.10
- Handle deep links correctly (#44)
0.2.9
- Don't write files to disk in prod mode
0.2.8
- Add
gotofunction (#29) - Don't use
/tmpas destination in Now environments
0.2.7
- Fix streaming bug
0.2.6
- Render main.js back to templates, to allow relative imports (#40)
0.2.5
- Fix nested routes on Windows (#39)
- Rebundle when routes and main.js change (#34)
- Add
Link...preloadheaders for JavaScript assets (#2) - Stream document up to first dynamic content (#19)
- Error if routes clash (#33)
0.2.4
- Posixify path to HMR client
0.2.3
- Posixify import paths, even on Windows (#31)
- Pass
urlto 404 handler
0.2.2
- Create destination directory when building, don't assume it's already there from dev mode
- We have tests now!
0.2.1
- Inject HMR logic in dev mode
0.2.0
- Separate
sapper buildfrom prod server (#21)
0.1.3-5
- Fix typo
0.1.2
- Use
atime.getTime()andmtime.getTime()instead ofatimeMsandmtimeMs(#11) - Make dest dir before anyone tries to write to it (#18)
0.1.1
- Expose resolved pathname to
sapper/runtime/app.jsas__app__inside main.js
0.1.0
- First public preview