Skip to content

Commit

Permalink
Update to latest Svelte Beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel-G committed Sep 2, 2022
1 parent cba1136 commit 4cc87e2
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 68 deletions.
121 changes: 62 additions & 59 deletions frontend/package-lock.json

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

7 changes: 3 additions & 4 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check --plugin-search-dir=. . && eslint .",
"format": "prettier --write --plugin-search-dir=. .",
"prebuild": "cd ../audio-worklet && npm run build",
"postinstall": "cd ../audio-worklet && npm install",
"postci": "cd ../audio-worklet && npm ci",
"postlint": "cd ../audio-worklet && npm run lint",
"prelint": "npm run format"
},
"devDependencies": {
"@sveltejs/adapter-static": "^1.0.0-next.39",
"@sveltejs/kit": "1.0.0-next.426",
"@sveltejs/adapter-static": "^1.0.0-next.41",
"@sveltejs/kit": "1.0.0-next.461",
"@types/lodash": "^4.14.178",
"@types/webmidi": "^2.0.6",
"@typescript-eslint/eslint-plugin": "^5.27.0",
Expand All @@ -37,7 +36,7 @@
"svelte-preprocess": "^4.10.6",
"tslib": "^2.3.1",
"typescript": "^4.7.4",
"vite": "^3.0.0"
"vite": "^3.1.0-beta.1"
},
"dependencies": {
"@crikey/stores-base": "^0.0.13",
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Handle } from '@sveltejs/kit'
import config from '../vite.config'
import { dev } from '$app/env'
import { dev } from '$app/environment'

/**
* https://gist.github.com/michaelwooley/3d35e552fbaeaa44801f93228c486a8a
Expand Down Expand Up @@ -39,7 +39,7 @@ const updateResponseHeadersInDevFactory = (): ((r: Response) => void) => {
const updateResponseHeadersInDev = updateResponseHeadersInDevFactory()

export const handle: Handle = async ({ event, resolve }) => {
const response = await resolve(event, { ssr: false })
const response = await resolve(event)

updateResponseHeadersInDev(response)

Expand Down
3 changes: 0 additions & 3 deletions frontend/src/routes/workspace/[slug]/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ export const load: PageLoad = async event => {
if (id === 'new') {
const new_id = await new_workspace()

// > There is a known bug with `redirect`: it will currently fail during client-side navigation, due to [#5952](https://github.com/sveltejs/kit/issues/5952)
// At least in dev mode
console.log(`/workspace/${new_id}`)
throw redirect(307, `/workspace/${new_id}`)
} else {
// Try load the workspace from localstorage
Expand Down

0 comments on commit 4cc87e2

Please sign in to comment.