Skip to content

Commit db7681f

Browse files
authored
feat: update [email protected].* + @sveltejs/[email protected] (#4056)
1 parent 240d5a6 commit db7681f

File tree

72 files changed

+2119
-886
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+2119
-886
lines changed

.github/actions/init-env-node/action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ runs:
1010
name: Setup node
1111
with:
1212
cache: pnpm
13+
node-version-file: '.nvmrc'
1314

1415
- name: Get pnpm store directory
1516
shell: bash

app/package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"build": "vite build",
1919
"check": "svelte-check --tsconfig ./tsconfig.json",
2020
"check:watch": "pnpm check --watch",
21-
"lint": "prettier --no-editorconfig --check . && eslint .",
22-
"format": "prettier --no-editorconfig --write .",
21+
"lint": "prettier --check . && eslint .",
22+
"format": "prettier --write .",
2323
"fix": "eslint --fix .",
2424
"tauri": "tauri",
2525
"prepare": "svelte-kit sync"
@@ -47,17 +47,18 @@
4747
"@octokit/rest": "^20.1.1",
4848
"@playwright/test": "^1.44.1",
4949
"@replit/codemirror-lang-svelte": "^6.0.0",
50-
"@sentry/sveltekit": "^7.114.0",
51-
"@sveltejs/adapter-static": "^2.0.3",
52-
"@sveltejs/kit": "^1.30.4",
50+
"@sentry/sveltekit": "^8.9.2",
51+
"@sveltejs/adapter-static": "^3.0.1",
52+
"@sveltejs/kit": "^2.5.10",
53+
"@sveltejs/vite-plugin-svelte": "^3.1.1",
5354
"@tauri-apps/api": "^1.5.5",
5455
"@types/crypto-js": "^4.2.2",
5556
"@types/diff": "^5.2.1",
5657
"@types/diff-match-patch": "^1.0.36",
5758
"@types/lscache": "^1.3.4",
5859
"@types/marked": "^5.0.2",
59-
"@typescript-eslint/eslint-plugin": "^7.11.0",
60-
"@typescript-eslint/parser": "^7.11.0",
60+
"@typescript-eslint/eslint-plugin": "^7.13.0",
61+
"@typescript-eslint/parser": "^7.13.0",
6162
"autoprefixer": "^10.4.19",
6263
"class-transformer": "^0.5.1",
6364
"crypto-js": "^4.2.0",
@@ -68,7 +69,7 @@
6869
"eslint-import-resolver-typescript": "^3.6.1",
6970
"eslint-plugin-import": "^2.29.1",
7071
"eslint-plugin-square-svelte-store": "^1.0.0",
71-
"eslint-plugin-svelte": "^2.39.0",
72+
"eslint-plugin-svelte": "^2.39.3",
7273
"inter-ui": "^4.0.2",
7374
"leven": "^4.0.0",
7475
"lscache": "^1.3.2",
@@ -80,11 +81,11 @@
8081
"postcss-load-config": "^5.1.0",
8182
"postcss-pxtorem": "^6.1.0",
8283
"posthog-js": "1.136.4",
83-
"prettier": "^3.3.0",
84-
"prettier-plugin-svelte": "^3.2.3",
84+
"prettier": "^3.3.2",
85+
"prettier-plugin-svelte": "^3.2.4",
8586
"reflect-metadata": "^0.2.2",
8687
"rxjs": "^7.8.1",
87-
"svelte": "^4.2.16",
88+
"svelte": "5.0.0-next.149",
8889
"svelte-check": "^3.8.0",
8990
"svelte-floating-ui": "^1.5.8",
9091
"svelte-french-toast": "^1.2.0",
@@ -94,9 +95,9 @@
9495
"tauri-plugin-log-api": "github:tauri-apps/tauri-plugin-log#v1",
9596
"tauri-plugin-store-api": "github:tauri-apps/tauri-plugin-store#v1",
9697
"tinykeys": "^2.1.0",
97-
"tslib": "^2.6.2",
98+
"tslib": "^2.6.3",
9899
"typescript": "^5.4.5",
99-
"vite": "^4.5.3",
100+
"vite": "^5.2.13",
100101
"vitest": "^0.34.6"
101102
},
102103
"dependencies": {

app/src/app.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// and what to do when importing types
44
declare namespace App {}
55

6+
declare module 'tinykeys';
7+
68
interface HTMLElement {
79
scrollIntoViewIfNeeded: (centerIfNeeded?: boolean) => void;
810
}

app/src/lib/components/AIPromptEdit/Content.svelte

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,6 @@
203203
.sections-divider {
204204
user-select: none;
205205
border-top: 1px solid var(--clr-border-3);
206-
207-
&.empty {
208-
opacity: 0;
209-
}
210206
}
211207
212208
.actions {

app/src/lib/components/AIPromptEdit/DialogBubble.svelte

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import Button from '$lib/components/Button.svelte';
44
import Icon from '$lib/components/Icon.svelte';
55
import { useAutoHeight } from '$lib/utils/useAutoHeight';
6-
import { useResize } from '$lib/utils/useResize';
76
import { marked } from 'marked';
87
import { createEventDispatcher } from 'svelte';
98
@@ -69,10 +68,7 @@
6968
on:change={(e) => {
7069
useAutoHeight(e.currentTarget);
7170
}}
72-
use:useResize={() => {
73-
if (textareaElement) useAutoHeight(textareaElement);
74-
}}
75-
/>
71+
></textarea>
7672
{:else}
7773
<div class="markdown bubble-message scrollbar text-base-body-13">
7874
{@html marked.parse(promptMessage.content)}
@@ -92,14 +88,14 @@
9288
Remove example
9389
</Button>
9490
{/if}
95-
<Button style="ghost" outline grow on:click={() => dispatcher('addExample')}
96-
>Add new example</Button
97-
>
91+
<Button style="ghost" outline grow on:click={() => dispatcher('addExample')}>
92+
Add new example
93+
</Button>
9894
</div>
9995
{/if}
10096
</div>
10197

102-
<style lang="post-css">
98+
<style lang="postcss">
10399
.bubble-wrap {
104100
display: flex;
105101
flex-direction: column;

app/src/lib/components/AppUpdater.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
Release notes
122122
</Button>
123123
<div class="status-section">
124-
<div class="sliding-gradient" />
124+
<div class="sliding-gradient"></div>
125125

126126
{#if !$update$.status}
127127
<div class="cta-btn" transition:fade={{ duration: 100 }}>

app/src/lib/components/Avatar.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
class:integrated={status === 'integrated'}
2121
class:shadow-lane={shadowLane}
2222
use:tooltip={help}
23-
/>
23+
></div>
2424
{:else}
2525
<img
2626
class="avatar"

app/src/lib/components/BaseBranch.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
<span class="text-base-12">Don't show this again</span>
114114
</label>
115115

116-
<svelte:fragment slot="controls" let:close>
116+
{#snippet controls(close)}
117117
<Button style="ghost" outline on:click={close}>Cancel</Button>
118118
<Button
119119
style="pop"
@@ -128,7 +128,7 @@
128128
>
129129
Merge Upstream
130130
</Button>
131-
</svelte:fragment>
131+
{/snippet}
132132
</Modal>
133133

134134
<style>

app/src/lib/components/BaseBranchCard.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
const project = getContext(Project);
1616
1717
$: base = baseBranchService.base;
18+
// eslint-disable-next-line svelte/valid-compile
1819
$: selected = $page.url.href.endsWith('/base');
1920
2021
let baseContents: HTMLElement;

app/src/lib/components/Board.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
}}
8383
>
8484
{#each $activeBranches.sort((a, b) => a.order - b.order) as branch (branch.id)}
85-
<!-- svelte-ignore a11y-no-static-element-interactions -->
85+
<!-- svelte-ignore a11y_no_static_element_interactions -->
8686
<div
8787
class="branch draggable-branch"
8888
draggable="true"

0 commit comments

Comments
 (0)