Skip to content

Commit 6157c64

Browse files
authored
release: 1.4.0
Feat/rc 1.4.0
2 parents 49444a5 + 84d4f90 commit 6157c64

File tree

18 files changed

+1474
-155
lines changed

18 files changed

+1474
-155
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,26 @@ on: [push, pull_request]
55
jobs:
66
build-and-test:
77
name: Build and Test
8+
timeout-minutes: 15
89
runs-on: ubuntu-latest
910
steps:
10-
- uses: actions/checkout@v4
11+
- name: Check out code
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 2
15+
16+
- uses: actions/cache@v4
17+
with:
18+
path: |
19+
~/.bun/install/cache
20+
${{ github.workspace }}/.next/cache
21+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
22+
restore-keys: |
23+
${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lock') }}-
24+
1125
- uses: oven-sh/setup-bun@v2
26+
with:
27+
bun-version: latest
1228

1329
- name: Install dependencies
1430
run: bun install

bun.lock

Lines changed: 984 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bun.lockb

-217 KB
Binary file not shown.
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import createMDX from "@next/mdx";
2-
import remarkGfm from "remark-gfm";
3-
import rehypeSlug from "rehype-slug";
4-
import rehypePrettyCode from "rehype-pretty-code";
52

6-
/** @type {import('rehype-pretty-code').Options} */
73
const options = {
84
theme: "ayu-dark",
95
bypassInlineCode: false,
@@ -12,12 +8,11 @@ const options = {
128
const withMDX = createMDX({
139
extension: /\.mdx?$/,
1410
options: {
15-
remarkPlugins: [remarkGfm],
16-
rehypePlugins: [[rehypePrettyCode, options], rehypeSlug],
11+
remarkPlugins: ["remark-gfm"],
12+
rehypePlugins: [["rehype-pretty-code", options], "rehype-slug"],
1713
},
1814
});
1915

20-
/** @type {import('next').NextConfig} */
2116
const nextConfig = {
2217
pageExtensions: ["js", "jsx", "md", "mdx", "ts", "tsx"],
2318
reactStrictMode: true,

docs/package.json

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,38 @@
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
6-
"dev": "next dev",
6+
"dev": "next dev --turbopack",
77
"build": "next build",
88
"start": "next start",
99
"lint": "next lint"
1010
},
1111
"dependencies": {
1212
"@mdx-js/loader": "^3.0.1",
1313
"@mdx-js/react": "^3.0.1",
14-
"@next/mdx": "^14.2.11",
14+
"@next/mdx": "15.5.3",
1515
"@omsimos/react-highlight-popover": "*",
1616
"@types/mdx": "^2.0.13",
17-
"next": "^14.2.11",
17+
"next": "15.5.3",
1818
"nextjs-toploader": "^3.6.15",
19-
"react": "^18",
20-
"react-dom": "^18",
19+
"react": "19.1.1",
20+
"react-dom": "19.1.1",
2121
"rehype-pretty-code": "^0.14.0",
2222
"rehype-slug": "^6.0.0",
2323
"remark-gfm": "^4.0.0",
24-
"shiki": "^1.17.5"
24+
"shiki": "^3.13.0"
2525
},
2626
"devDependencies": {
27+
"@tailwindcss/postcss": "^4.1.13",
2728
"@tailwindcss/typography": "^0.5.15",
2829
"@types/node": "^20",
29-
"@types/react": "^18",
30-
"@types/react-dom": "^18",
30+
"@types/react": "19.1.13",
31+
"@types/react-dom": "19.1.9",
3132
"postcss": "^8",
32-
"tailwindcss": "^3.4.1",
33+
"tailwindcss": "^4.1.13",
3334
"typescript": "^5"
35+
},
36+
"overrides": {
37+
"@types/react": "19.1.13",
38+
"@types/react-dom": "19.1.9"
3439
}
3540
}

docs/postcss.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @type {import('postcss-load-config').Config} */
22
const config = {
33
plugins: {
4-
tailwindcss: {},
4+
'@tailwindcss/postcss': {},
55
},
66
};
77

docs/src/app/docs/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default function MdxLayout({ children }: { children: React.ReactNode }) {
22
return (
3-
<div className="prose prose-zinc max-w-screen-md mx-auto py-24">
3+
<div className="prose prose-zinc max-w-(--breakpoint-md) mx-auto py-24">
44
{children}
55
</div>
66
);

docs/src/app/docs/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { HighlightPopover } from '@omsimos/react-highlight-popover';
2828

2929
function App() {
3030
const renderPopover = ({ selection }) => (
31-
<div className="bg-white border rounded p-2 shadow-lg select-none">
31+
<div className="bg-white border rounded-sm p-2 shadow-lg select-none">
3232
You selected: {selection}
3333
</div>
3434
);

docs/src/app/globals.css

Lines changed: 39 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,50 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import "tailwindcss";
2+
@plugin "@tailwindcss/typography";
43

5-
:root {
6-
--background: #ffffff;
7-
--foreground: #242424;
4+
@theme {
5+
--color-background: var(--background);
6+
--color-foreground: var(--foreground);
87
}
98

10-
body {
11-
color: var(--foreground);
12-
background: var(--background);
13-
}
9+
/*
10+
The default border color has changed to `currentcolor` in Tailwind CSS v4,
11+
so we've added these compatibility styles to make sure everything still
12+
looks the same as it did with Tailwind CSS v3.
1413
15-
pre {
16-
overflow-x: auto;
17-
padding: 1rem 0;
14+
If we ever want to remove these styles, we need to add an explicit border
15+
color utility to any element that depends on these defaults.
16+
*/
17+
@layer base {
18+
*,
19+
::after,
20+
::before,
21+
::backdrop,
22+
::file-selector-button {
23+
border-color: var(--color-gray-200, currentcolor);
24+
}
1825
}
1926

20-
pre [data-line] {
21-
padding: 0 1rem;
27+
@utility text-balance {
28+
text-wrap: balance;
2229
}
2330

2431
@layer utilities {
25-
.text-balance {
26-
text-wrap: balance;
32+
:root {
33+
--background: #ffffff;
34+
--foreground: #242424;
35+
}
36+
37+
body {
38+
color: var(--foreground);
39+
background: var(--background);
40+
}
41+
42+
pre {
43+
overflow-x: auto;
44+
padding: 1rem 0;
45+
}
46+
47+
pre [data-line] {
48+
padding: 0 1rem;
2749
}
2850
}

docs/src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function Home() {
1414
Documentation
1515
</Link>
1616

17-
<div className="text-zinc-800 bg-zinc-50/50 rounded-lg shadow-sm border px-4 py-3 ">
17+
<div className="text-zinc-800 bg-zinc-50/50 rounded-lg shadow-xs border px-4 py-3 ">
1818
<p>
1919
npm install{" "}
2020
<span className="font-semibold">

0 commit comments

Comments
 (0)