All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Remove wrapper markup around
Connectionchildren
- Fix failed NPM publish in CI
- Add global
Connection.connectionstate to track connection status
- Fix potential race condition with
.clearTimeout()inConnectioncomponent
- Replace all snippet props with
childrensnippet inConnectioncomponent - Switch to PNPM package manager
- Remove unused
isomorphic-fetchpackage
- Fix
TypeErrorin crypto when ciphertext has wrong format - Use type restrictions from
./$typesmodule
- Switch tests to use
@testing-library/sveltepackage
- Add
ToggleButton.keepOpenprop that keeps the target open upon navigation
- Close
ToggleButtonbefore navigation (not after)
- Change separator between ciphertext and signature to
.
- Change encryption output encoding to
base64url
- Repurpose
ToggleButton.clickOutsideprop to accept the target element
- Remove
ToggleButton.targetprop
- Make
slowAfterMsprop optional inConnectioncomponent
- Upgrade to Svelte v5
- Change default exports to named exports
- Bump minimum supported JS version to es2020
- Add
Connectioncomponent
- Fix dependency resolution error in SvelteKit 2.0
- Fix
svelte-checkerrors
- Catch session verification error in
decryptSessionhandler - Unset session if verification fails in
decryptSessionhandler
- Add support for SvelteKit 2.0
- Make all environment variables server-side only
- Rename
PUBLIC_ALLOWED_REQUEST_METHODSenv var toALLOWED_REQUEST_METHODS - Rename
PUBLIC_CSRF_SKIP_ROUTESenv var toCSRF_SKIP_ROUTES - Rename
PUBLIC_SESSION_KEYenv var toSESSION_KEY
- Fix build error when not using
.envat build time
- Fix wrong conditional exports order in
package.json
- Move more server-only modules to
src/lib/server/ - Separate server-side
exportsfrom client-side ones - Rename
$lib/routemodule to$lib/helpers
- Fix error: "Cannot import $env/dynamic/private into client-side code"
- Upgrade to Svelte v4. Svelte v3 is still supported
- Move server-only modules to
src/lib/server/ - Load client-side envs dynamically
- Migrate to
@sveltejs/packagev2
- Fix es2015 compatibility issues
- Upgrade SvelteKit to v1.0
- Upgrade SvelteKit to v1.0.0-next.535
- Do not close
ToggleButtoniftarget's child is clicked during click outside event
- Always close a toggle button's target after navigation
- Match paths by route ID instead of URL when ignoring paths in CSRF
- Rename
PUBLIC_CSRF_IGNORE_PATHSenv var toPUBLIC_CSRF_SKIP_ROUTES
- Add env var to skip CSRF protection for specific paths
- Fix
allowedRequestMethodsreturning array with single empty string when env var not set
- Fix sessions set in endpoints not set in response headers
- Remove
cookiepackage in favourevent.cookies
- Upgrade SvelteKit to v1.0.0-next.481
- Rename
VITE_ALLOWED_REQUEST_METHODSenv var toPUBLIC_ALLOWED_REQUEST_METHODS - Rename
VITE_SESSION_KEYenv var toPUBLIC_SESSION_KEY - Change CSRF
Header.set(App.Session)toHeader.set(Token | string) - Change CSRF
Param.set(App.Session)toParam.set(Token | string)
- Upgrade SvelteKit
- Set
Pragma: no-cacheheader in.disableCache()handler
- Remove
.redirect()helper
- Add missing setup steps to docs
- Fix
VITE_ALLOWED_REQUEST_METHODSenv undefined in production builds
- Initial public release