Skip to content

Commit

Permalink
chore: bump deps (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge authored Apr 14, 2024
1 parent bd7997c commit 5363e99
Show file tree
Hide file tree
Showing 29 changed files with 129 additions and 138 deletions.
19 changes: 19 additions & 0 deletions .changeset/witty-eyes-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
"@t3-oss/env-nextjs": minor
"@t3-oss/env-core": minor
"@t3-oss/env-nuxt": minor
---

BREAKING: make env presets functions

To migrate:

```diff
import { vercel } from '@t3-oss/env-core/presets'

const env = createEnv({
/** ... */
- extends: [vercel],
+ extends: [vercel()],
})
```
4 changes: 2 additions & 2 deletions .github/canary-version.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { exec } from "child_process";
import fs from "fs";
import { exec } from "node:child_process";
import fs from "node:fs";

const pkgJsonPaths = [
"packages/core/package.json",
Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"complexity": {
"noBannedTypes": "off"
},
"nursery": {
"style": {
"useImportType": "error",
"useExportType": "error"
}
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/mdx-components.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { MDXComponents } from "mdx/types";
import Link from "next/link";
import { Link } from "next-view-transitions";
import * as React from "react";

import { Icons } from "@/components/icons";
Expand Down
1 change: 1 addition & 0 deletions docs/next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck - whatever
import withMdx from "@next/mdx";
import rehypePrettyCode from "rehype-pretty-code";
import { getHighlighter } from "shiki";
Expand Down
41 changes: 20 additions & 21 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@t3-env/docs",
"type": "module",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -11,31 +10,31 @@
"dependencies": {
"@juliusmarminge/next-themes": "^0.3.0",
"@mdx-js/loader": "^2.3.0",
"@next/mdx": "^13.4.1",
"@next/mdx": "^14.2.1",
"@radix-ui/react-popover": "^1.0.5",
"@radix-ui/react-scroll-area": "^1.0.3",
"@vercel/analytics": "^1.0.0",
"class-variance-authority": "^0.4.0",
"clsx": "^1.2.1",
"lucide-react": "0.176.0",
"next": "^14.1.0",
"@vercel/analytics": "^1.2.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"lucide-react": "0.368.0",
"next": "^14.2.1",
"next-view-transitions": "^0.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-wrap-balancer": "^0.4.0",
"rehype-pretty-code": "^0.9.5",
"sharp": "^0.33.0",
"shiki": "^0.14.1",
"tailwind-merge": "^1.12.0",
"tailwindcss-animate": "^1.0.5"
"react-wrap-balancer": "^1.1.0",
"rehype-pretty-code": "0.9.5",
"sharp": "^0.33.3",
"shiki": "0.14.1",
"tailwind-merge": "^2.2.0",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@types/mdx": "^2.0.5",
"@types/node": "^18.15.13",
"@types/react": "18.0.38",
"@types/react-dom": "18.0.11",
"autoprefixer": "^10.4.13",
"postcss": "^8.4.21",
"tailwindcss": "^3.3.1",
"typescript": "^5.3.3"
"@types/mdx": "^2.0.13",
"@types/node": "^20.12.0",
"@types/react": "18.2.78",
"@types/react-dom": "18.2.25",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5"
}
}
1 change: 0 additions & 1 deletion docs/postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
2 changes: 1 addition & 1 deletion docs/src/app/docs/customization/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ import { vercel } from "@t3-oss/env-core/presets";
export const env = createEnv({
// ...
// Extend the Vercel preset.
extends: [vercel],
extends: [vercel()],
});

env.VERCEL_URL; // string
Expand Down
2 changes: 1 addition & 1 deletion docs/src/app/docs/introduction/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This library does all the grunt work for you, simply define your schema and use

import { buttonVariants } from "@/components/ui/button";
import { cn } from "@/lib/cn";
import Link from "next/link";
import { Link } from "next-view-transitions";

<Link href="/docs/core" className={cn(buttonVariants(), "mt-4")}>
Take me to the installation!
Expand Down
5 changes: 3 additions & 2 deletions docs/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import "@/styles/globals.css";
import { ThemeProvider } from "@juliusmarminge/next-themes";
import { Analytics } from "@vercel/analytics/react";
import type { Metadata, Viewport } from "next";
import { ViewTransitions } from "next-view-transitions";

import { Inter, JetBrains_Mono } from "next/font/google";
import localFont from "next/font/local";
Expand Down Expand Up @@ -73,7 +74,7 @@ interface RootLayoutProps {

export default function RootLayout({ children }: RootLayoutProps) {
return (
<>
<ViewTransitions>
<html lang="en" suppressHydrationWarning className="bg-background">
<head />
<body
Expand All @@ -94,6 +95,6 @@ export default function RootLayout({ children }: RootLayoutProps) {
<Analytics />
</body>
</html>
</>
</ViewTransitions>
);
}
2 changes: 1 addition & 1 deletion docs/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Link from "next/link";
import { Link } from "next-view-transitions";
import Balancer from "react-wrap-balancer";

import { siteConfig } from "@/app/site-config";
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/icons.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Link, Moon, SunMedium, TerminalSquare, Twitter } from "lucide-react";
import type { Icon, LucideProps } from "lucide-react";
import type { LucideIcon, LucideProps } from "lucide-react";

export type { Icon };
export type { LucideIcon as Icon };

export const Icons = {
sun: SunMedium,
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/main-nav.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import Link from "next/link";
import { Link } from "next-view-transitions";
import * as React from "react";

import type { Icons } from "@/components/icons";
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/mobile-nav.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import Link from "next/link";
import { Link } from "next-view-transitions";
import * as React from "react";

import { Button } from "./ui/button";
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import Link from "next/link";
import { Link } from "next-view-transitions";
import { usePathname } from "next/navigation";

import { cn } from "@/lib/cn";
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/site-header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Link from "next/link";
import { Link } from "next-view-transitions";

import { siteConfig } from "@/app/site-config";
import { Icons } from "@/components/icons";
Expand Down
3 changes: 1 addition & 2 deletions examples/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "@examples/astro",
"type": "module",
"private": true,
"version": "0.0.1",
"scripts": {
"build": "astro build",
"dev": "astro dev",
Expand All @@ -14,7 +13,7 @@
"@t3-oss/env-core": "workspace:*",
"astro": "^2.3.0",
"solid-js": "^1.4.3",
"zod": "^3.20.2"
"zod": "^3.22.4"
},
"devDependencies": {
"vite": "^4.3.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs/app/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ export const env = createEnv({
NODE_ENV: process.env.NODE_ENV,
NEXT_PUBLIC_GREETING: process.env.NEXT_PUBLIC_GREETING,
},
extends: [vercel],
extends: [vercel()],
});
19 changes: 9 additions & 10 deletions examples/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
{
"name": "@examples/nextjs",
"type": "module",
"version": "0.1.0",
"private": true,
"scripts": {
"build": "next build",
"dev": "next dev",
"start": "next start"
},
"devDependencies": {
"@types/node": "^18.15.13",
"@types/react": "18.0.38",
"@types/react-dom": "18.0.11",
"jiti": "^1.21.0",
"typescript": "^5.3.3"
},
"dependencies": {
"@t3-oss/env-nextjs": "workspace:*",
"next": "^14.1.0",
"next": "^14.2.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"zod": "^3.20.2"
"zod": "^3.22.4"
},
"devDependencies": {
"@types/node": "^20.12.0",
"@types/react": "18.2.78",
"@types/react-dom": "18.2.25",
"jiti": "^1.21.0",
"typescript": "^5.4.5"
}
}
7 changes: 4 additions & 3 deletions examples/nuxt/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@examples/nuxt",
"type": "module",
"private": true,
"scripts": {
"build": "nuxt build",
Expand All @@ -8,11 +9,11 @@
"preview": "nuxt preview"
},
"devDependencies": {
"@types/node": "^18.15.13",
"nuxt": "^3.4.2"
"@types/node": "^20.12.0",
"nuxt": "^3.11.2"
},
"dependencies": {
"@t3-oss/env-nuxt": "workspace:*",
"zod": "^3.20.2"
"zod": "^3.22.4"
}
}
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"typecheck": "turbo typecheck"
},
"dependencies": {
"@biomejs/biome": "1.5.3",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.1",
"@types/bun": "^1.0.4",
"expect-type": "^0.17.3",
"turbo": "^1.11.3",
"typescript": "^5.3.3"
"@biomejs/biome": "1.6.4",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@types/bun": "^1.0.12",
"expect-type": "^0.19.0",
"turbo": "^1.13.2",
"typescript": "^5.4.5"
}
}
19 changes: 5 additions & 14 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
"name": "@t3-oss/env-core",
"version": "0.9.2",
"type": "module",
"keywords": [
"create-t3-app",
"environment variables",
"zod"
],
"keywords": ["create-t3-app", "environment variables", "zod"],
"author": "Julius Marminge",
"license": "MIT",
"repository": {
Expand All @@ -25,12 +21,7 @@
"default": "./dist/presets.js"
}
},
"files": [
"dist",
"package.json",
"LICENSE",
"README.md"
],
"files": ["dist", "package.json", "LICENSE", "README.md"],
"scripts": {
"build": "rm -rf dist && bunchee",
"dev": "bunhcee -w",
Expand All @@ -46,8 +37,8 @@
}
},
"devDependencies": {
"bunchee": "^4.3.3",
"typescript": "^5.3.3",
"zod": "^3.20.2"
"bunchee": "^5.1.2",
"typescript": "^5.4.5",
"zod": "^3.22.4"
}
}
Loading

0 comments on commit 5363e99

Please sign in to comment.