Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update examples #1093

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/bare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"type": "module",
"devDependencies": {
"@types/node": "^18.17.5",
"esbuild": "^0.14.54",
"postcss": "^8.4.28",
"esbuild": "^0.19.5",
"postcss": "^8.4.31",
"solid-start-node": "^0.3.8",
"typescript": "^4.9.5",
"vite": "^4.4.9"
"typescript": "^5.2.2",
"vite": "^4.5.0"
},
"dependencies": {
"@solidjs/meta": "^0.28.6",
Expand Down
8 changes: 4 additions & 4 deletions examples/hackernews/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"type": "module",
"main": "./dist/index.js",
"devDependencies": {
"@types/babel__core": "^7.20.1",
"@types/babel__core": "^7.20.3",
"@types/node": "^18.17.5",
"esbuild": "^0.14.54",
"esbuild": "^0.19.5",
"solid-start-node": "^0.3.8",
"typescript": "^4.9.5",
"vite": "^4.4.9"
"typescript": "^5.2.2",
"vite": "^4.5.0"
},
"dependencies": {
"@solidjs/meta": "^0.28.6",
Expand Down
12 changes: 6 additions & 6 deletions examples/movies/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
},
"type": "module",
"devDependencies": {
"@iconify/json": "^2.2.102",
"sass": "^1.65.1",
"@iconify/json": "^2.2.132",
"sass": "^1.69.4",
"solid-start-node": "^0.3.8",
"typescript": "^4.9.5",
"unplugin-icons": "^0.14.15",
"vite": "^4.4.9"
"typescript": "^5.2.2",
"unplugin-icons": "^0.17.1",
"vite": "^4.5.0"
},
"dependencies": {
"@solid-primitives/scheduled": "1.1.0",
"@solid-primitives/scheduled": "1.4.1",
"@solidjs/meta": "^0.28.6",
"@solidjs/router": "^0.8.3",
"nprogress": "^0.2.0",
Expand Down
18 changes: 9 additions & 9 deletions examples/notes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@
"devDependencies": {
"solid-start-cloudflare-workers": "^0.3.8",
"solid-start-node": "^0.3.8",
"typescript": "^4.9.5",
"vite": "^4.4.9"
"typescript": "^5.2.2",
"vite": "^4.5.0"
},
"dependencies": {
"@cloudflare/kv-asset-handler": "^0.2.0",
"@cloudflare/workers-types": "^3.19.0",
"@iconify/json": "^2.2.102",
"@cloudflare/kv-asset-handler": "^0.3.0",
"@cloudflare/workers-types": "^4.20231016.0",
"@iconify/json": "^2.2.132",
"@solidjs/meta": "^0.28.6",
"@solidjs/router": "^0.8.3",
"@types/marked": "^4.3.1",
"@types/marked": "^5.0.2",
"date-fns": "^2.30.0",
"excerpts": "^0.0.3",
"marked": "^4.3.0",
"marked": "^9.1.2",
"sanitize-html": "^2.11.0",
"solid-js": "^1.8.3",
"solid-start": "^0.3.8",
"string_decoder": "^1.3.0",
"unplugin-icons": "^0.14.15",
"wrangler": "^2.20.0"
"unplugin-icons": "^0.17.1",
"wrangler": "^3.14.0"
},
"engines": {
"node": ">=18"
Expand Down
12 changes: 6 additions & 6 deletions examples/todomvc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"type": "module",
"devDependencies": {
"@types/node": "^18.17.5",
"csstype": "3.1.0",
"esbuild": "^0.14.54",
"postcss": "^8.4.28",
"rollup": "^3.28.0",
"csstype": "3.1.2",
"esbuild": "^0.19.5",
"postcss": "^8.4.31",
"rollup": "^4.1.4",
"solid-start-node": "^0.3.8",
"typescript": "^4.9.5",
"vite": "^4.4.9"
"typescript": "^5.2.2",
"vite": "^4.5.0"
},
"dependencies": {
"@solidjs/meta": "^0.28.6",
Expand Down
12 changes: 6 additions & 6 deletions examples/with-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
},
"type": "module",
"devDependencies": {
"@types/babel__core": "^7.20.1",
"@types/babel__core": "^7.20.3",
"@types/node": "^18.17.5",
"esbuild": "^0.14.54",
"postcss": "^8.4.28",
"rollup": "^3.28.0",
"esbuild": "^0.19.5",
"postcss": "^8.4.31",
"rollup": "^4.1.4",
"solid-start-node": "^0.3.8",
"typescript": "^4.9.5",
"vite": "^4.4.9"
"typescript": "^5.2.2",
"vite": "^4.5.0"
},
"dependencies": {
"@solidjs/meta": "^0.28.6",
Expand Down
14 changes: 7 additions & 7 deletions examples/with-authjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
"type": "module",
"devDependencies": {
"@types/node": "^18.17.5",
"esbuild": "^0.14.54",
"next-auth": "^4.23.1",
"postcss": "^8.4.28",
"esbuild": "^0.19.5",
"next-auth": "^4.24.3",
"postcss": "^8.4.31",
"solid-start-node": "^0.3.8",
"typescript": "^4.9.5",
"vite": "^4.4.9"
"typescript": "^5.2.2",
"vite": "^4.5.0"
},
"dependencies": {
"@auth/core": "^0.5.1",
"@solid-auth/base": "^2.0.3",
"@auth/core": "^0.18.0",
"@solid-mediakit/auth": "^1.0.3",
"@solidjs/meta": "^0.28.6",
"@solidjs/router": "^0.8.3",
"solid-js": "^1.8.3",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-authjs/src/root.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @refresh reload
import { SessionProvider } from "@solid-auth/base/client";
import { SessionProvider } from "@solid-mediakit/auth/client";
import { Suspense } from "solid-js";
import {
A,
Expand Down
2 changes: 1 addition & 1 deletion examples/with-authjs/src/routes/api/auth/[...solidauth].ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SolidAuth } from "@solid-auth/base";
import { SolidAuth } from "@solid-mediakit/auth";
import { authOptions } from "~/server/auth";

export const { GET, POST } = SolidAuth(authOptions);
4 changes: 2 additions & 2 deletions examples/with-authjs/src/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getSession } from "@solid-auth/base";
import { signIn } from "@solid-auth/base/client";
import { getSession } from "@solid-mediakit/auth";
import { signIn } from "@solid-mediakit/auth/client";
import { createSignal, onCleanup, Show } from "solid-js";
import { Navigate, useRouteData } from "solid-start";
import { createServerData$ } from "solid-start/server";
Expand Down
4 changes: 2 additions & 2 deletions examples/with-authjs/src/routes/protected.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getSession } from "@solid-auth/base";
import { signOut } from "@solid-auth/base/client";
import { getSession } from "@solid-mediakit/auth";
import { signOut } from "@solid-mediakit/auth/client";
import { Show, type VoidComponent } from "solid-js";
import { useRouteData } from "solid-start";
import { createServerData$, redirect } from "solid-start/server";
Expand Down
4 changes: 2 additions & 2 deletions examples/with-authjs/src/server/auth.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import DiscordProvider from "@auth/core/providers/discord";
import type { SolidAuthConfig } from "@solid-auth/base";
import type { SolidAuthConfig } from "@solid-mediakit/auth";

export const authOptions: SolidAuthConfig = {
providers: [
// @ts-expect-error Types are wrong

DiscordProvider({
clientId: process.env.DISCORD_CLIENT_ID as string,
clientSecret: process.env.DISCORD_CLIENT_SECRET as string
Expand Down
4 changes: 2 additions & 2 deletions examples/with-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"devDependencies": {
"@mdx-js/rollup": "^2.3.0",
"solid-start-node": "^0.3.8",
"typescript": "^4.9.5",
"vite": "^4.4.9"
"typescript": "^5.2.2",
"vite": "^4.5.0"
},
"dependencies": {
"@solidjs/meta": "^0.28.6",
Expand Down
8 changes: 4 additions & 4 deletions examples/with-prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
},
"type": "module",
"devDependencies": {
"prisma": "^5.5.0",
"solid-start-node": "^0.3.8",
"typescript": "^4.9.5",
"vite": "^4.4.9"
"typescript": "^5.2.2",
"vite": "^4.5.0"
},
"dependencies": {
"@prisma/client": "^4.16.2",
"@prisma/client": "^5.5.0",
"@solidjs/meta": "^0.28.6",
"@solidjs/router": "^0.8.3",
"prisma": "^4.16.2",
"solid-js": "^1.8.3",
"solid-start": "^0.3.8"
},
Expand Down
Binary file modified examples/with-prisma/prisma/dev.db
Binary file not shown.
10 changes: 5 additions & 5 deletions examples/with-solid-styled/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
},
"type": "module",
"devDependencies": {
"@types/babel__core": "^7.20.1",
"@types/babel__core": "^7.20.3",
"solid-start-node": "^0.3.8",
"typescript": "^4.9.5",
"vite": "^4.4.9",
"vite-plugin-solid-styled": "^0.8.3"
"typescript": "^5.2.2",
"vite": "^4.5.0",
"vite-plugin-solid-styled": "^0.9.2"
},
"dependencies": {
"@solidjs/meta": "^0.28.6",
"@solidjs/router": "^0.8.3",
"solid-js": "^1.8.3",
"solid-start": "^0.3.8",
"solid-styled": "^0.8.2"
"solid-styled": "^0.9.2"
},
"engines": {
"node": ">=18"
Expand Down
10 changes: 5 additions & 5 deletions examples/with-tailwindcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
},
"type": "module",
"devDependencies": {
"autoprefixer": "^10.4.15",
"postcss": "^8.4.28",
"autoprefixer": "^10.4.16",
"postcss": "^8.4.31",
"solid-start-node": "^0.3.8",
"tailwindcss": "^3.3.3",
"typescript": "^4.9.5",
"vite": "^4.4.9"
"typescript": "^5.2.2",
"vite": "^4.5.0"
},
"dependencies": {
"@solidjs/meta": "^0.28.6",
Expand All @@ -21,6 +21,6 @@
"solid-start": "^0.3.8"
},
"engines": {
"node": "18"
"node": ">=18"
}
}
14 changes: 7 additions & 7 deletions examples/with-vitest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
"devDependencies": {
"@solidjs/meta": "^0.28.6",
"@solidjs/router": "^0.8.3",
"@solidjs/testing-library": "^0.5.2",
"@testing-library/jest-dom": "^5.17.0",
"@solidjs/testing-library": "^0.8.4",
"@testing-library/jest-dom": "^6.1.4",
"@types/testing-library__jest-dom": "^5.14.9",
"@vitest/coverage-c8": "^0.26.3",
"@vitest/ui": "^0.26.3",
"jsdom": "^20.0.3",
"@vitest/ui": "^0.34.6",
"jsdom": "^22.1.0",
"solid-js": "^1.8.3",
"solid-start": "^0.3.8",
"solid-start-node": "^0.3.8",
"typescript": "^4.9.5",
"vite": "^4.4.9",
"vitest": "^0.26.3"
"typescript": "^5.2.2",
"vite": "^4.5.0",
"vitest": "^0.34.6"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Vitest Snapshot v1
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`<Counter /> > renders 1 1`] = `
<div>
Expand Down
11 changes: 7 additions & 4 deletions examples/with-vitest/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ export default defineConfig({
plugins: [solid()],
test: {
deps: {
registerNodeLoader: true,
inline: [/solid-js/],
optimizer: {
web: {
include: ["/solid-js/"]
}
}
},
environment: "jsdom",
globals: true,
setupFiles: ['node_modules/@testing-library/jest-dom/extend-expect', './setupVitest.js'],
transformMode: { web: [/\.[jt]sx?$/] },
setupFiles: ['node_modules/@testing-library/jest-dom/vitest', './setupVitest.js'],
testTransformMode: { web: ["/\.[jt]sx?$/"] },
},
resolve: {
conditions: ["development", "browser"],
Expand Down
8 changes: 4 additions & 4 deletions examples/with-websocket/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"type": "module",
"devDependencies": {
"solid-start-cloudflare-workers": "^0.3.8",
"typescript": "^4.9.5",
"vite": "^4.4.9"
"typescript": "^5.2.2",
"vite": "^4.5.0"
},
"dependencies": {
"@cloudflare/kv-asset-handler": "^0.1.3",
"@cloudflare/workers-types": "^3.19.0",
"@cloudflare/kv-asset-handler": "^0.3.0",
"@cloudflare/workers-types": "^4.20231016.0",
"@solidjs/meta": "^0.28.6",
"@solidjs/router": "^0.8.3",
"solid-js": "^1.8.3",
Expand Down
Loading
Loading