From 6a012d290e919e2ce30b35c57bcca1535a9942b5 Mon Sep 17 00:00:00 2001 From: Candido Sales Gomes Date: Mon, 5 Aug 2024 11:00:30 -0400 Subject: [PATCH 1/4] migration to SvelteKit 2 --- package.json | 35 ++++++++++++++++++++--------------- svelte.config.js | 2 +- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 6687cef75..a9fadef1a 100644 --- a/package.json +++ b/package.json @@ -20,30 +20,31 @@ "pyodide:fetch": "node scripts/prepare-pyodide.js" }, "devDependencies": { - "@sveltejs/adapter-auto": "^2.0.0", - "@sveltejs/adapter-static": "^2.0.3", - "@sveltejs/kit": "^1.30.0", - "@tailwindcss/typography": "^0.5.10", + "@sveltejs/adapter-auto": "3.2.2", + "@sveltejs/adapter-static": "^3.0.2", + "@sveltejs/kit": "^2.5.20", + "@sveltejs/vite-plugin-svelte": "^3.1.1", + "@tailwindcss/typography": "^0.5.13", "@types/bun": "latest", "@typescript-eslint/eslint-plugin": "^6.17.0", "@typescript-eslint/parser": "^6.17.0", "autoprefixer": "^10.4.16", "cypress": "^13.8.1", "eslint": "^8.56.0", - "eslint-config-prettier": "^8.5.0", - "eslint-plugin-cypress": "^3.0.2", - "eslint-plugin-svelte": "^2.30.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-cypress": "^3.4.0", + "eslint-plugin-svelte": "^2.43.0", "i18next-parser": "^8.13.0", "postcss": "^8.4.31", - "prettier": "^2.8.0", - "prettier-plugin-svelte": "^2.10.1", - "svelte": "^4.0.5", - "svelte-check": "^3.4.3", + "prettier": "^3.3.3", + "prettier-plugin-svelte": "^3.2.6", + "svelte": "^4.2.18", + "svelte-check": "^3.8.5", "svelte-confetti": "^1.3.2", "tailwindcss": "^3.3.3", "tslib": "^2.4.1", - "typescript": "^5.0.0", - "vite": "^4.4.2", + "typescript": "^5.5.4", + "vite": "^5.3.5", "vitest": "^1.6.0" }, "type": "module", @@ -52,7 +53,7 @@ "@codemirror/lang-python": "^6.1.6", "@codemirror/theme-one-dark": "^6.1.2", "@pyscript/core": "^0.4.32", - "@sveltejs/adapter-node": "^1.3.1", + "@sveltejs/adapter-node": "^2.0.0", "async": "^3.2.5", "bits-ui": "^0.19.7", "codemirror": "^6.0.1", @@ -77,5 +78,9 @@ "tippy.js": "^6.3.7", "turndown": "^7.2.0", "uuid": "^9.0.1" + }, + "engines": { + "node": ">=18.13.0 <=21.x.x", + "npm": ">=6.0.0" } -} +} \ No newline at end of file diff --git a/svelte.config.js b/svelte.config.js index 1ff7ceeb7..d756191d3 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,5 +1,5 @@ import adapter from '@sveltejs/adapter-static'; -import { vitePreprocess } from '@sveltejs/kit/vite'; +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; /** @type {import('@sveltejs/kit').Config} */ const config = { From 5315fb201d802bd0e1af1f00a076be28fc59bb3f Mon Sep 17 00:00:00 2001 From: Candido Sales Gomes Date: Mon, 5 Aug 2024 11:10:31 -0400 Subject: [PATCH 2/4] changelod updated --- CHANGELOG.md | 24 ++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d62360f87..d56f4965b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,30 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.3.12] - 2024-08-05 + +### Added + +- **✨ Migrated to SvelteKit 2**: Added visuals for model selection, including images next to model names for more intuitive navigation. + +### Changed + +- **⬆️ Dependency Updates** + - Added '@sveltejs/vite-plugin-svelte'. + - Upgraded '@sveltejs/adapter-auto' from version 2.0.0 to 3.2.2. + - Upgraded '@sveltejs/adapter-static' from version 2.0.3 to 3.0.2. + - Upgraded '@sveltejs/kit' from version 1.30.0 to 2.5.20. + - Upgraded '@tailwindcss/typography' from version 0.5.10 to 0.5.13. + - Upgraded 'eslint-config-prettier' from version 8.5.0 to 9.1.0. + - Upgraded 'eslint-plugin-cypress' from version 3.0.2 to 3.4.0. + - Upgraded 'eslint-plugin-svelte' from version 2.30.0 to 2.43.0. + - Upgraded 'prettier' from version 2.8.0 to 3.3.3. + - Upgraded 'prettier-plugin-svelte' from version 2.10.1 to 3.2.6. + - Upgraded 'svelte' from version 4.0.5 to 4.2.18. + - Upgraded 'svelte-check' from version 3.4.3 to 3.8.5. + - Upgraded 'typescript' from version 5.0.0 to 5.5.4. + - Upgraded 'vite' from version 4.4.2 to 5.3.5. + ## [0.3.11] - 2024-08-02 ### Added diff --git a/package.json b/package.json index a9fadef1a..8d78367b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "open-webui", - "version": "0.3.11", + "version": "0.3.12", "private": true, "scripts": { "dev": "npm run pyodide:fetch && vite dev --host", From b289eef5233216261e94314caa581df30b38859e Mon Sep 17 00:00:00 2001 From: Candido Sales Gomes Date: Mon, 5 Aug 2024 11:16:28 -0400 Subject: [PATCH 3/4] typo --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d56f4965b..d5361fbbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- **✨ Migrated to SvelteKit 2**: Added visuals for model selection, including images next to model names for more intuitive navigation. +- **✨ Migrated to SvelteKit 2**: Significant improvements in performance and simplification of state management. ### Changed From 4105c9735ea188f115356c0e17eef1f17a10277c Mon Sep 17 00:00:00 2001 From: Candido Sales Gomes Date: Tue, 6 Aug 2024 09:38:42 -0400 Subject: [PATCH 4/4] revert files --- CHANGELOG.md | 24 ------------------------ package.json | 2 +- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5361fbbd..d62360f87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,30 +5,6 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [0.3.12] - 2024-08-05 - -### Added - -- **✨ Migrated to SvelteKit 2**: Significant improvements in performance and simplification of state management. - -### Changed - -- **⬆️ Dependency Updates** - - Added '@sveltejs/vite-plugin-svelte'. - - Upgraded '@sveltejs/adapter-auto' from version 2.0.0 to 3.2.2. - - Upgraded '@sveltejs/adapter-static' from version 2.0.3 to 3.0.2. - - Upgraded '@sveltejs/kit' from version 1.30.0 to 2.5.20. - - Upgraded '@tailwindcss/typography' from version 0.5.10 to 0.5.13. - - Upgraded 'eslint-config-prettier' from version 8.5.0 to 9.1.0. - - Upgraded 'eslint-plugin-cypress' from version 3.0.2 to 3.4.0. - - Upgraded 'eslint-plugin-svelte' from version 2.30.0 to 2.43.0. - - Upgraded 'prettier' from version 2.8.0 to 3.3.3. - - Upgraded 'prettier-plugin-svelte' from version 2.10.1 to 3.2.6. - - Upgraded 'svelte' from version 4.0.5 to 4.2.18. - - Upgraded 'svelte-check' from version 3.4.3 to 3.8.5. - - Upgraded 'typescript' from version 5.0.0 to 5.5.4. - - Upgraded 'vite' from version 4.4.2 to 5.3.5. - ## [0.3.11] - 2024-08-02 ### Added diff --git a/package.json b/package.json index 8d78367b7..a9fadef1a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "open-webui", - "version": "0.3.12", + "version": "0.3.11", "private": true, "scripts": { "dev": "npm run pyodide:fetch && vite dev --host",