Skip to content

Commit 71df6f4

Browse files
authored
Update deps (vite 6, crxjs) (#317)
2 parents 5e15eaf + 7569ff3 commit 71df6f4

File tree

172 files changed

+5184
-9492
lines changed

Some content is hidden

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

172 files changed

+5184
-9492
lines changed

.changeset/good-teachers-refuse.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@solid-devtools/debugger': minor
3+
'@solid-devtools/extension': minor
4+
'@solid-devtools/frontend': minor
5+
'@solid-devtools/logger': minor
6+
'solid-devtools': minor
7+
'@solid-devtools/overlay': minor
8+
'@solid-devtools/shared': minor
9+
'@solid-devtools/theme': minor
10+
---
11+
12+
Update to vite 6, remove solid-start dep (was unused anyway)

.github/workflows/format.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 20 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The following document is a _(work in progress)_ guide for contributing to Solid
66

77
## Tooling
88

9-
[`pnpm`](https://pnpm.io/), [`prettier`](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) and [`eslint`](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) — that's it.
9+
[`pnpm`](https://pnpm.io/ and [`eslint`](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) — that's it.
1010

1111
This project uses [pnpm](https://pnpm.io/) for package management. If you don't have it installed, you can install it with `npm install -g pnpm`.
1212

@@ -20,7 +20,7 @@ If you want to run the E2E tests, you need to install the dependencies by runnin
2020

2121
## Operating System
2222

23-
I _([thetarnav](https://github.com/thetarnav))_ am working from a Windows PC, but it everything should theoretically work on macOS and Linux as well. If you find any issues, please open an issue.
23+
I'm working on a linux machine right now, but everything should be wokking the same way regardless of OS. Please make an issue if it's not.
2424

2525
Alternatively, if something is off, I recommend using [Gitpod](https://gitpod.io) or [Codeflow](https://stackblitz.com/codeflow) for development. Both of them are free for oss projects like this one and will give you a stable development environment.
2626

configs/tsconfig.base.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22
"compilerOptions": {
33
"strict": true,
44
"target": "ESNext",
5-
"module": "ESNext",
6-
"moduleResolution": "node",
5+
"module": "NodeNext",
6+
"moduleResolution": "nodenext",
77
"allowSyntheticDefaultImports": true,
88
"resolveJsonModule": true,
99
"esModuleInterop": true,
10+
"verbatimModuleSyntax": true,
11+
"allowImportingTsExtensions": true,
1012
"skipLibCheck": true,
1113
"forceConsistentCasingInFileNames": true,
1214
"noPropertyAccessFromIndexSignature": true,
1315
"noUncheckedIndexedAccess": true,
1416
"allowJs": true,
1517
"checkJs": true,
18+
"emitDeclarationOnly": true,
1619
"outDir": "types",
1720
"types": ["@total-typescript/ts-reset"]
1821
}

configs/tsup.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Plugin } from 'esbuild'
1+
import { type Plugin } from 'esbuild'
22
import { solidPlugin } from 'esbuild-plugin-solid'
3-
import { defineConfig, Options } from 'tsup'
3+
import { defineConfig, type Options } from 'tsup'
44

55
export const CI =
66
process.env['CI'] === 'true' ||

eslint.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default [{
6060
files: ['**/*.{js,mjs,jsx,ts,tsx}'],
6161

6262
plugins: {
63-
'@typescript-eslint': ts_eslint,
63+
'@typescript-eslint': /** @type {*} */(ts_eslint),
6464
'@no-only-tests': no_only_tests,
6565
'@eslint-comments': eslint_comments,
6666
'@nothing-but': /** @type {*} */(nb_eslint),
@@ -83,7 +83,7 @@ export default [{
8383
*/
8484
'no-console' : 'warn',
8585
'no-debugger' : 'warn',
86-
'prefer-const' : 'warn',
86+
// 'prefer-const' : 'warn',
8787
'require-await' : 'warn',
8888
'no-empty' : 'warn',
8989
'@typescript-eslint/no-unused-vars': ['warn', {

examples/sandbox/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@
1212
},
1313
"devDependencies": {
1414
"@babel/plugin-syntax-typescript": "^7.23.3",
15-
"@unocss/preset-typography": "0.65.0-beta.3",
16-
"solid-devtools": "workspace:^",
17-
"vite-plugin-inspect": "^0.7.42"
15+
"@unocss/preset-typography": "0.65.1",
16+
"solid-devtools": "workspace:^"
1817
},
1918
"dependencies": {
2019
"@solid-devtools/debugger": "workspace:^",
2120
"@solid-devtools/logger": "workspace:^",
2221
"@solid-devtools/overlay": "workspace:^",
23-
"@solid-primitives/timer": "^1.3.7"
22+
"@solid-primitives/timer": "^1.3.10"
2423
}
2524
}

examples/sandbox/src/App.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {
2-
Component,
2+
type Component,
33
createComponent,
44
createComputed,
55
createEffect,
@@ -9,15 +9,15 @@ import {
99
createRoot,
1010
createSignal,
1111
ErrorBoundary,
12-
ParentComponent,
13-
Setter,
12+
type ParentComponent,
13+
type Setter,
1414
Show,
1515
Suspense,
1616
} from 'solid-js'
1717
import {createMutable} from 'solid-js/store'
18-
import Recursive from './Recursive'
19-
import {ThemeExample} from './Theme'
20-
import Todos from './Todos'
18+
import Recursive from './Recursive.tsx'
19+
import {ThemeExample} from './Theme.tsx'
20+
import Todos from './Todos.tsx'
2121

2222
const doMediumCalc = () => {
2323
Array.from({length: 1000000}, (_, i) => i).sort(() => Math.random() - 5)

examples/sandbox/src/Overlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Show, lazy} from 'solid-js'
2-
const DevtoolsOverlay = lazy(() => import('./DevtoolsOverlay'))
2+
const DevtoolsOverlay = lazy(() => import('./DevtoolsOverlay.tsx'))
33

44
export function Overlay() {
55
return (

examples/sandbox/src/Recursive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component, createContext, For, mergeProps, splitProps, useContext} from 'solid-js'
1+
import {type Component, createContext, For, mergeProps, splitProps, useContext} from 'solid-js'
22
import {createStore} from 'solid-js/store'
33

44
type NodeType = {

examples/sandbox/src/Theme.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component, createContext, ParentComponent, useContext} from 'solid-js'
1+
import {type Component, createContext, type ParentComponent, useContext} from 'solid-js'
22
import {createStore} from 'solid-js/store'
33

44
export type ThemeContextState = {

examples/sandbox/src/Todos.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import {
22
batch,
3-
Component,
3+
type Component,
44
createEffect,
55
createMemo,
66
createRoot,
77
createSignal,
88
For,
99
Show,
1010
} from 'solid-js'
11-
import {createStore, produce, SetStoreFunction, Store, unwrap} from 'solid-js/store'
11+
import {createStore, produce, type SetStoreFunction, type Store, unwrap} from 'solid-js/store'
1212

1313
export function createLocalStore<T extends object>(
1414
name: string,

examples/sandbox/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ async function main() {
55
await import('@solid-devtools/debugger/bundled')
66
}
77

8-
import('./main')
8+
import('./main.tsx')
99
}
1010
main()

examples/sandbox/src/main.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {render} from 'solid-js/web'
2-
import App from './App'
3-
import {Overlay} from './Overlay'
4-
import {ThemeProvider} from './Theme'
2+
import App from './App.tsx'
3+
import {Overlay} from './Overlay.tsx'
4+
import {ThemeProvider} from './Theme.tsx'
55

66
import 'uno.css'
77

examples/sandbox/vite.config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import devtools from 'solid-devtools/vite'
22
import {presetTypography} from 'unocss'
33
import Unocss from 'unocss/vite'
44
import {defineConfig} from 'vite'
5-
import Inspect from 'vite-plugin-inspect'
65
import solid from 'vite-plugin-solid'
76

87
const is_ext = process.env['EXT'] === 'true' || process.env['EXT'] === '1'
@@ -24,7 +23,6 @@ export default defineConfig(mode => {
2423
Unocss({
2524
presets: [presetTypography()],
2625
}),
27-
Inspect(),
2826
],
2927
define: {
3028
'process.env.EXT': JSON.stringify(is_ext),

examples/start/.gitignore

Lines changed: 0 additions & 24 deletions
This file was deleted.

examples/start/package.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

examples/start/public/favicon.ico

-664 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
-8.79 KB
Binary file not shown.
-664 Bytes
Binary file not shown.
-1.42 KB
Binary file not shown.
-6.92 KB
Binary file not shown.

examples/start/public/manifest.webmanifest

Lines changed: 0 additions & 20 deletions
This file was deleted.

examples/start/public/robots.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

examples/start/public/sw.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

examples/start/src/components/comment.tsx

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)