Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst committed May 3, 2024
1 parent 2918be7 commit 46cd9bf
Show file tree
Hide file tree
Showing 4 changed files with 7,238 additions and 6,021 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
engine-strict=true
package-manager-strict=false
shell-emulator=true
use-node-version=20.12.2
23 changes: 11 additions & 12 deletions config/env.config.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
import { log } from "@acdh-oeaw/lib";
import { createEnv } from "@acdh-oeaw/validate-env";
import { createEnv } from "@acdh-oeaw/validate-env/next";
import * as v from "valibot";

export const env = createEnv({
prefix: "NEXT_PUBLIC_",
shared(input) {
system(input) {
const Schema = v.object({
NODE_ENV: v.optional(v.picklist(["development", "production", "test"]), "production"),
});
return v.parse(Schema, input);
},
server(input) {
private(input) {
const Schema = v.object({
BUILD_MODE: v.optional(v.picklist(["export", "standalone"])),
BUNDLE_ANALYZER: v.optional(v.picklist(["disabled", "enabled"])),
ENV_VALIDATION: v.optional(v.picklist(["disabled", "enabled"])),
BUILD_MODE: v.optional(v.picklist(["export", "standalone"]), "standalone"),
BUNDLE_ANALYZER: v.optional(v.picklist(["disabled", "enabled"]), "disabled"),
KEYSTATIC_GITHUB_CLIENT_ID: v.optional(v.string([v.minLength(1)])),
KEYSTATIC_GITHUB_CLIENT_SECRET: v.optional(v.string([v.minLength(1)])),
KEYSTATIC_SECRET: v.optional(v.string([v.minLength(1)])),
TYPESENSE_ADMIN_API_KEY: v.optional(v.string([v.minLength(1)])),
});
return v.parse(Schema, input);
},
client(input) {
public(input) {
const Schema = v.object({
NEXT_PUBLIC_APP_BASE_URL: v.string([v.url()]),
NEXT_PUBLIC_BOTS: v.optional(v.picklist(["disabled", "enabled"])),
NEXT_PUBLIC_BOTS: v.optional(v.picklist(["disabled", "enabled"]), "disabled"),
NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION: v.optional(v.string()),
NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG: v.optional(v.string([v.minLength(1)])),
NEXT_PUBLIC_KEYSTATIC_GITHUB_REPO_NAME: v.optional(v.string([v.minLength(1)])),
Expand All @@ -43,11 +41,9 @@ export const env = createEnv({
});
return v.parse(Schema, input);
},

environment: {
BUILD_MODE: process.env.BUILD_MODE,
BUNDLE_ANALYZER: process.env.BUNDLE_ANALYZER,
ENV_VALIDATION: process.env.ENV_VALIDATION,
KEYSTATIC_GITHUB_CLIENT_ID: process.env.KEYSTATIC_GITHUB_CLIENT_ID,
KEYSTATIC_GITHUB_CLIENT_SECRET: process.env.KEYSTATIC_GITHUB_CLIENT_SECRET,
KEYSTATIC_SECRET: process.env.KEYSTATIC_SECRET,
Expand All @@ -68,7 +64,10 @@ export const env = createEnv({
NEXT_PUBLIC_TYPESENSE_PROTOCOL: process.env.NEXT_PUBLIC_TYPESENSE_PROTOCOL,
TYPESENSE_ADMIN_API_KEY: process.env.TYPESENSE_ADMIN_API_KEY,
},
skip: process.env.ENV_VALIDATION === "disabled",
skip: v.parse(
v.optional(v.picklist(["disabled", "enabled", "public"]), "enabled"),
process.env.ENV_VALIDATION,
),
onError(error) {
if (error instanceof v.ValiError) {
const message = "Invalid environment variables";
Expand Down
53 changes: 26 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"type": "module",
"engines": {
"node": "20.x",
"pnpm": "8.x"
"pnpm": "9.x"
},
"packageManager": "pnpm@8.15.7",
"packageManager": "pnpm@9.0.6",
"scripts": {
"analyze": "BUNDLE_ANALYZER=\"enabled\" next build --no-lint",
"build": "next build",
Expand Down Expand Up @@ -37,35 +37,34 @@
"validate": "run-p format:check lint:check types:check test test:e2e"
},
"dependencies": {
"@acdh-oeaw/lib": "^0.1.10",
"@acdh-oeaw/validate-env": "^0.0.1",
"@keystatic/core": "^0.5.11",
"@acdh-oeaw/lib": "^0.1.11",
"@acdh-oeaw/validate-env": "^0.0.3",
"@keystatic/core": "^0.5.13",
"@keystatic/next": "^5.0.0",
"@mdx-js/mdx": "^3.0.1",
"@react-aria/utils": "^3.23.2",
"@t3-oss/env-nextjs": "^0.9.2",
"@react-aria/utils": "^3.24.0",
"client-only": "^0.0.1",
"cva": "^1.0.0-beta.1",
"date-fns": "^3.6.0",
"dset": "^3.1.3",
"fast-glob": "^3.3.2",
"image-size": "^1.1.1",
"lucide-react": "^0.368.0",
"lucide-react": "^0.378.0",
"mdast-util-mdx": "^3.0.0",
"next": "^14.2.1",
"next-intl": "^3.11.1",
"react": "^18.2.0",
"react-aria-components": "^1.1.1",
"react-dom": "^18.2.0",
"next": "^14.2.3",
"next-intl": "^3.12.1",
"react": "^18.3.1",
"react-aria-components": "^1.2.0",
"react-dom": "^18.3.1",
"react-schemaorg": "^2.0.0",
"rehype-slug": "^6.0.0",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.0",
"remark-mdx-frontmatter": "^4.0.0",
"remark-smartypants": "^2.1.0",
"remark-smartypants": "^3.0.1",
"server-only": "^0.0.1",
"sharp": "^0.33.3",
"shiki": "^1.3.0",
"shiki": "^1.4.0",
"typesense": "^1.8.2",
"unist-util-visit": "^5.0.0",
"valibot": "^0.30.0",
Expand All @@ -84,18 +83,18 @@
"@acdh-oeaw/tsconfig": "^1.0.2",
"@commitlint/cli": "^18.6.1",
"@mdx-js/loader": "^3.0.1",
"@next/bundle-analyzer": "^14.2.1",
"@next/eslint-plugin-next": "^14.2.1",
"@next/mdx": "^14.2.1",
"@next/bundle-analyzer": "^14.2.3",
"@next/eslint-plugin-next": "^14.2.3",
"@next/mdx": "^14.2.3",
"@playwright/test": "^1.43.1",
"@react-aria/optimize-locales-plugin": "^1.0.2",
"@react-types/shared": "^3.22.1",
"@shikijs/rehype": "^1.3.0",
"@react-aria/optimize-locales-plugin": "^1.1.0",
"@react-types/shared": "^3.23.0",
"@shikijs/rehype": "^1.4.0",
"@types/mdast": "^4.0.3",
"@types/mdx": "^2.0.13",
"@types/node": "^20.12.7",
"@types/react": "^18.2.78",
"@types/react-dom": "^18.2.25",
"@types/node": "^20.12.8",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.0",
"axe-core": "^4.9.0",
"axe-playwright": "^2.0.1",
"ci-info": "^4.0.0",
Expand All @@ -111,10 +110,10 @@
"prettier": "^3.2.5",
"schema-dts": "^1.1.2",
"simple-git-hooks": "^2.11.1",
"stylelint": "^16.3.1",
"stylelint": "^16.5.0",
"tailwindcss": "^3.4.3",
"tailwindcss-react-aria-components": "^1.1.1",
"tsx": "^4.7.2",
"tailwindcss-react-aria-components": "^1.1.2",
"tsx": "^4.9.0",
"typescript": "^5.4.5"
},
"pnpm": {
Expand Down
Loading

0 comments on commit 46cd9bf

Please sign in to comment.