create-audora-next 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/base/README.md +1 -1
- package/templates/base/package.json +2 -2
- package/templates/blog/README.md +1 -1
- package/templates/blog/bun.lock +17 -15
- package/templates/blog/package.json +2 -2
- package/templates/blog/src/blogs/components/mdx.tsx +37 -4
- package/templates/blog/src/blogs/content/hello-world.mdx +4 -2
package/package.json
CHANGED
package/templates/base/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Open [http://localhost:3000](http://localhost:3000) to see your app.
|
|
|
20
20
|
|
|
21
21
|
| Technology | Version | Notes |
|
|
22
22
|
| ------------ | ------- | ------------------------------ |
|
|
23
|
-
| Next.js | 16.
|
|
23
|
+
| Next.js | 16.2.6 | App Router, Turbopack enabled |
|
|
24
24
|
| React | 19.2.3 | React Compiler enabled |
|
|
25
25
|
| TypeScript | 5 | Strict mode |
|
|
26
26
|
| Tailwind CSS | 4 | PostCSS, no config file needed |
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"clsx": "^2.1.1",
|
|
22
|
-
"next": "16.
|
|
22
|
+
"next": "16.2.6",
|
|
23
23
|
"next-themes": "^0.4.6",
|
|
24
24
|
"react": "19.2.3",
|
|
25
25
|
"react-dom": "19.2.3",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@types/react-dom": "^19.2.3",
|
|
33
33
|
"babel-plugin-react-compiler": "1.0.0",
|
|
34
34
|
"eslint": "^9.39.2",
|
|
35
|
-
"eslint-config-next": "16.
|
|
35
|
+
"eslint-config-next": "16.2.6",
|
|
36
36
|
"husky": "^9.1.7",
|
|
37
37
|
"lint-staged": "^16.2.7",
|
|
38
38
|
"prettier": "^3.7.4",
|
package/templates/blog/README.md
CHANGED
|
@@ -32,7 +32,7 @@ Open [http://localhost:3000](http://localhost:3000) to see your app.
|
|
|
32
32
|
|
|
33
33
|
| Technology | Version | Notes |
|
|
34
34
|
| ------------ | ------- | ------------------------------ |
|
|
35
|
-
| Next.js | 16.
|
|
35
|
+
| Next.js | 16.2.6 | App Router, Turbopack enabled |
|
|
36
36
|
| React | 19.2.3 | React Compiler enabled |
|
|
37
37
|
| TypeScript | 5 | Strict mode |
|
|
38
38
|
| Tailwind CSS | 4 | PostCSS, no config file needed |
|
package/templates/blog/bun.lock
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"gray-matter": "^4.0.3",
|
|
10
10
|
"lucide-react": "^0.563.0",
|
|
11
11
|
"motion": "^12.30.0",
|
|
12
|
-
"next": "16.
|
|
12
|
+
"next": "16.2.6",
|
|
13
13
|
"next-mdx-remote": "^5.0.0",
|
|
14
14
|
"next-themes": "^0.4.6",
|
|
15
15
|
"react": "19.2.3",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@types/react-dom": "^19.2.3",
|
|
27
27
|
"babel-plugin-react-compiler": "1.0.0",
|
|
28
28
|
"eslint": "^9.39.2",
|
|
29
|
-
"eslint-config-next": "16.
|
|
29
|
+
"eslint-config-next": "16.2.6",
|
|
30
30
|
"husky": "^9.1.7",
|
|
31
31
|
"lint-staged": "^16.2.7",
|
|
32
32
|
"prettier": "^3.7.4",
|
|
@@ -174,25 +174,25 @@
|
|
|
174
174
|
|
|
175
175
|
"@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@0.2.12", "", { "dependencies": { "@emnapi/core": "^1.4.3", "@emnapi/runtime": "^1.4.3", "@tybys/wasm-util": "^0.10.0" } }, "sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ=="],
|
|
176
176
|
|
|
177
|
-
"@next/env": ["@next/env@16.
|
|
177
|
+
"@next/env": ["@next/env@16.2.6", "", {}, "sha512-gd8HoHN4ufj73WmR3JmVolrpJR47ILK6LouP5xElPglaVxir6e1a7VzvTvDWkOoPXT9rkkTzyCxBu4yeZfZwcw=="],
|
|
178
178
|
|
|
179
|
-
"@next/eslint-plugin-next": ["@next/eslint-plugin-next@16.
|
|
179
|
+
"@next/eslint-plugin-next": ["@next/eslint-plugin-next@16.2.6", "", { "dependencies": { "fast-glob": "3.3.1" } }, "sha512-Z8l6o4JWKUl755x4R+wogD86KPeU+Ckw4K+SYG4kHeOJtRenDeK+OSbGcqZpDtbwn9DsJVdir2UxmwXuinUbUw=="],
|
|
180
180
|
|
|
181
|
-
"@next/swc-darwin-arm64": ["@next/swc-darwin-arm64@16.
|
|
181
|
+
"@next/swc-darwin-arm64": ["@next/swc-darwin-arm64@16.2.6", "", { "os": "darwin", "cpu": "arm64" }, "sha512-ZJGkkcNfYgrrMkqOdZ7zoLa1TOy0qpcMfk/z4Mh/FKUz40gVO+HNQWqmLxf67Z5WB64DRp0dhEbyHfel+6sJUg=="],
|
|
182
182
|
|
|
183
|
-
"@next/swc-darwin-x64": ["@next/swc-darwin-x64@16.
|
|
183
|
+
"@next/swc-darwin-x64": ["@next/swc-darwin-x64@16.2.6", "", { "os": "darwin", "cpu": "x64" }, "sha512-v/YLBHIY132Ced3puBJ7YJKw1lqsCrgcNo2aRJlCEyQrrCeRJlvGlnmxhPxNQI3KE3N1DN5r9TPNPvka3nq5RQ=="],
|
|
184
184
|
|
|
185
|
-
"@next/swc-linux-arm64-gnu": ["@next/swc-linux-arm64-gnu@16.
|
|
185
|
+
"@next/swc-linux-arm64-gnu": ["@next/swc-linux-arm64-gnu@16.2.6", "", { "os": "linux", "cpu": "arm64" }, "sha512-RPOvqlYBbcQjkz9VQQDZ2T2bARIjXZV1KFlt+V2Mr6SW/e4I9fcKsaA0hdyf2FHoTlsV2xnBd5Y912rP/1Ce6w=="],
|
|
186
186
|
|
|
187
|
-
"@next/swc-linux-arm64-musl": ["@next/swc-linux-arm64-musl@16.
|
|
187
|
+
"@next/swc-linux-arm64-musl": ["@next/swc-linux-arm64-musl@16.2.6", "", { "os": "linux", "cpu": "arm64" }, "sha512-URUTu1+dMkxJsPFgm+OeEvq9wf5sujw0EvgYy80TDGHTSLTnIHeqb0Eu8A3sC95IRgjejQL+kC4mw+4yPxiAXA=="],
|
|
188
188
|
|
|
189
|
-
"@next/swc-linux-x64-gnu": ["@next/swc-linux-x64-gnu@16.
|
|
189
|
+
"@next/swc-linux-x64-gnu": ["@next/swc-linux-x64-gnu@16.2.6", "", { "os": "linux", "cpu": "x64" }, "sha512-DOj182mPV8G3UkrayLoREM5YEYI+Dk5wv7Ox9xl1fFibAELEsFD0lDPfHIeILlutMMfdyhlzYPELG3peuKaurw=="],
|
|
190
190
|
|
|
191
|
-
"@next/swc-linux-x64-musl": ["@next/swc-linux-x64-musl@16.
|
|
191
|
+
"@next/swc-linux-x64-musl": ["@next/swc-linux-x64-musl@16.2.6", "", { "os": "linux", "cpu": "x64" }, "sha512-HKQ5SP/V/ub73UvF7n/zeJlxk2kLmtL7Wzrg4WfmkjmNos5onJ2tKu7yZOPdL18A6Svfn3max29ym+ry7NkK4g=="],
|
|
192
192
|
|
|
193
|
-
"@next/swc-win32-arm64-msvc": ["@next/swc-win32-arm64-msvc@16.
|
|
193
|
+
"@next/swc-win32-arm64-msvc": ["@next/swc-win32-arm64-msvc@16.2.6", "", { "os": "win32", "cpu": "arm64" }, "sha512-LZXpTlPyS5v7HhSmnvsLGP3iIYgYOBnc8r8ArlT55sGHV89bR2HlDdBjWQ+PY6SJMmk8TuVGFuxalnP3k/0Dwg=="],
|
|
194
194
|
|
|
195
|
-
"@next/swc-win32-x64-msvc": ["@next/swc-win32-x64-msvc@16.
|
|
195
|
+
"@next/swc-win32-x64-msvc": ["@next/swc-win32-x64-msvc@16.2.6", "", { "os": "win32", "cpu": "x64" }, "sha512-F0+4i0h9J6C4eE3EAPWsoCk7UW/dbzOjyzxY0qnDUOYFu6FFmdZ6l97/XdV3/Nz3VYyO7UWjyEJUXkGqcoXfMA=="],
|
|
196
196
|
|
|
197
197
|
"@nodelib/fs.scandir": ["@nodelib/fs.scandir@2.1.5", "", { "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" } }, "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g=="],
|
|
198
198
|
|
|
@@ -388,7 +388,7 @@
|
|
|
388
388
|
|
|
389
389
|
"balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="],
|
|
390
390
|
|
|
391
|
-
"baseline-browser-mapping": ["baseline-browser-mapping@2.
|
|
391
|
+
"baseline-browser-mapping": ["baseline-browser-mapping@2.10.31", "", { "bin": { "baseline-browser-mapping": "dist/cli.cjs" } }, "sha512-MujYO3eP72uvmSE0i4wltsodRfIpZATP3jvzRNRGGxgzId7aVocVJJV3nf01qnzzKFGxQVC9bpWxl5cjxTr/7Q=="],
|
|
392
392
|
|
|
393
393
|
"brace-expansion": ["brace-expansion@1.1.12", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg=="],
|
|
394
394
|
|
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
|
|
511
511
|
"eslint": ["eslint@9.39.2", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.1", "@eslint/config-array": "^0.21.1", "@eslint/config-helpers": "^0.4.2", "@eslint/core": "^0.17.0", "@eslint/eslintrc": "^3.3.1", "@eslint/js": "9.39.2", "@eslint/plugin-kit": "^0.4.1", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", "@types/estree": "^1.0.6", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.6", "debug": "^4.3.2", "escape-string-regexp": "^4.0.0", "eslint-scope": "^8.4.0", "eslint-visitor-keys": "^4.2.1", "espree": "^10.4.0", "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^8.0.0", "find-up": "^5.0.0", "glob-parent": "^6.0.2", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "json-stable-stringify-without-jsonify": "^1.0.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", "optionator": "^0.9.3" }, "peerDependencies": { "jiti": "*" }, "optionalPeers": ["jiti"], "bin": { "eslint": "bin/eslint.js" } }, "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw=="],
|
|
512
512
|
|
|
513
|
-
"eslint-config-next": ["eslint-config-next@16.
|
|
513
|
+
"eslint-config-next": ["eslint-config-next@16.2.6", "", { "dependencies": { "@next/eslint-plugin-next": "16.2.6", "eslint-import-resolver-node": "^0.3.6", "eslint-import-resolver-typescript": "^3.5.2", "eslint-plugin-import": "^2.32.0", "eslint-plugin-jsx-a11y": "^6.10.0", "eslint-plugin-react": "^7.37.0", "eslint-plugin-react-hooks": "^7.0.0", "globals": "16.4.0", "typescript-eslint": "^8.46.0" }, "peerDependencies": { "eslint": ">=9.0.0", "typescript": ">=3.3.1" }, "optionalPeers": ["typescript"] }, "sha512-z2ELYSkyrrJ6cuunTU8vhsT/RpouPkjaSah06nVW6Rg2Hpg0Vs8s497/e5s8G8qtdp4ccsiovz5P1rv+5VSW2Q=="],
|
|
514
514
|
|
|
515
515
|
"eslint-import-resolver-node": ["eslint-import-resolver-node@0.3.9", "", { "dependencies": { "debug": "^3.2.7", "is-core-module": "^2.13.0", "resolve": "^1.22.4" } }, "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g=="],
|
|
516
516
|
|
|
@@ -924,7 +924,7 @@
|
|
|
924
924
|
|
|
925
925
|
"natural-compare": ["natural-compare@1.4.0", "", {}, "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw=="],
|
|
926
926
|
|
|
927
|
-
"next": ["next@16.
|
|
927
|
+
"next": ["next@16.2.6", "", { "dependencies": { "@next/env": "16.2.6", "@swc/helpers": "0.5.15", "baseline-browser-mapping": "^2.9.19", "caniuse-lite": "^1.0.30001579", "postcss": "8.4.31", "styled-jsx": "5.1.6" }, "optionalDependencies": { "@next/swc-darwin-arm64": "16.2.6", "@next/swc-darwin-x64": "16.2.6", "@next/swc-linux-arm64-gnu": "16.2.6", "@next/swc-linux-arm64-musl": "16.2.6", "@next/swc-linux-x64-gnu": "16.2.6", "@next/swc-linux-x64-musl": "16.2.6", "@next/swc-win32-arm64-msvc": "16.2.6", "@next/swc-win32-x64-msvc": "16.2.6", "sharp": "^0.34.5" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0", "@playwright/test": "^1.51.1", "babel-plugin-react-compiler": "*", "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", "sass": "^1.3.0" }, "optionalPeers": ["@opentelemetry/api", "@playwright/test", "babel-plugin-react-compiler", "sass"], "bin": { "next": "dist/bin/next" } }, "sha512-qOVgKJg1+At15NpeUP+eJgCHvTCgXsogweq87Ri/Ix7PkqQHg4sdaXmSFqKlgaIXE4kW0g25LE68W87UANlHtw=="],
|
|
928
928
|
|
|
929
929
|
"next-mdx-remote": ["next-mdx-remote@5.0.0", "", { "dependencies": { "@babel/code-frame": "^7.23.5", "@mdx-js/mdx": "^3.0.1", "@mdx-js/react": "^3.0.1", "unist-util-remove": "^3.1.0", "vfile": "^6.0.1", "vfile-matter": "^5.0.0" }, "peerDependencies": { "react": ">=16" } }, "sha512-RNNbqRpK9/dcIFZs/esQhuLA8jANqlH694yqoDBK8hkVdJUndzzGmnPHa2nyi90N4Z9VmzuSWNRpr5ItT3M7xQ=="],
|
|
930
930
|
|
|
@@ -1268,6 +1268,8 @@
|
|
|
1268
1268
|
|
|
1269
1269
|
"@typescript-eslint/typescript-estree/semver": ["semver@7.7.3", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q=="],
|
|
1270
1270
|
|
|
1271
|
+
"browserslist/baseline-browser-mapping": ["baseline-browser-mapping@2.9.14", "", { "bin": { "baseline-browser-mapping": "dist/cli.js" } }, "sha512-B0xUquLkiGLgHhpPBqvl7GWegWBUNuujQ6kXd/r1U38ElPT6Ok8KZ8e+FpUGEc2ZoRQUzq/aUnaKFc/svWUGSg=="],
|
|
1272
|
+
|
|
1271
1273
|
"eslint-import-resolver-node/debug": ["debug@3.2.7", "", { "dependencies": { "ms": "^2.1.1" } }, "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ=="],
|
|
1272
1274
|
|
|
1273
1275
|
"eslint-module-utils/debug": ["debug@3.2.7", "", { "dependencies": { "ms": "^2.1.1" } }, "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ=="],
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"gray-matter": "^4.0.3",
|
|
23
23
|
"lucide-react": "^0.563.0",
|
|
24
24
|
"motion": "^12.30.0",
|
|
25
|
-
"next": "16.
|
|
25
|
+
"next": "16.2.6",
|
|
26
26
|
"next-mdx-remote": "^5.0.0",
|
|
27
27
|
"next-themes": "^0.4.6",
|
|
28
28
|
"react": "19.2.3",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@types/react-dom": "^19.2.3",
|
|
40
40
|
"babel-plugin-react-compiler": "1.0.0",
|
|
41
41
|
"eslint": "^9.39.2",
|
|
42
|
-
"eslint-config-next": "16.
|
|
42
|
+
"eslint-config-next": "16.2.6",
|
|
43
43
|
"husky": "^9.1.7",
|
|
44
44
|
"lint-staged": "^16.2.7",
|
|
45
45
|
"prettier": "^3.7.4",
|
|
@@ -84,9 +84,42 @@ function CustomLink(props: CustomLinkProps) {
|
|
|
84
84
|
);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
type ImgProps = React.ComponentProps<typeof Image> & {
|
|
88
|
+
width?: number | string;
|
|
89
|
+
height?: number | string;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
function BlogImage(props: ImgProps) {
|
|
93
|
+
const { width, height, alt, src, ...rest } = props;
|
|
94
|
+
const hasDimensions =
|
|
95
|
+
typeof width === "number" &&
|
|
96
|
+
typeof height === "number" &&
|
|
97
|
+
width > 0 &&
|
|
98
|
+
height > 0;
|
|
99
|
+
|
|
100
|
+
if (hasDimensions) {
|
|
101
|
+
return (
|
|
102
|
+
<Image
|
|
103
|
+
className="rounded-lg"
|
|
104
|
+
width={width}
|
|
105
|
+
height={height}
|
|
106
|
+
alt={alt ?? ""}
|
|
107
|
+
src={src}
|
|
108
|
+
{...rest}
|
|
109
|
+
/>
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const imgSrc = typeof src === "string" ? src : "";
|
|
114
|
+
return (
|
|
115
|
+
// eslint-disable-next-line @next/next/no-img-element
|
|
116
|
+
<img
|
|
117
|
+
className="rounded-lg max-w-full h-auto"
|
|
118
|
+
src={imgSrc}
|
|
119
|
+
alt={alt ?? ""}
|
|
120
|
+
{...rest}
|
|
121
|
+
/>
|
|
122
|
+
);
|
|
90
123
|
}
|
|
91
124
|
|
|
92
125
|
type MDXComponents = NonNullable<MDXRemoteProps["components"]>;
|
|
@@ -188,7 +221,7 @@ const components: MDXComponents = {
|
|
|
188
221
|
);
|
|
189
222
|
},
|
|
190
223
|
a: CustomLink,
|
|
191
|
-
img:
|
|
224
|
+
img: BlogImage,
|
|
192
225
|
Table,
|
|
193
226
|
};
|
|
194
227
|
|
|
@@ -10,7 +10,7 @@ tags:
|
|
|
10
10
|
- web
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
-
**Axum** is a fast, ergonomic web framework for Rust built on [Tokio](https://tokio.rs/) (async runtime) and [Tower](https://github.com/tower-rs/tower) (middleware). In this post we
|
|
13
|
+
**Axum** is a fast, ergonomic web framework for Rust built on [Tokio](https://tokio.rs/) (async runtime) and [Tower](https://github.com/tower-rs/tower) (middleware). In this post we'll build a minimal "Hello, World!" server you can run in a few minutes.
|
|
14
14
|
|
|
15
15
|
## Setup
|
|
16
16
|
|
|
@@ -57,7 +57,9 @@ cargo run
|
|
|
57
57
|
|
|
58
58
|
Open [http://localhost:3000](http://localhost:3000) and you should see **Hello, World!**.
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+

|
|
61
|
+
|
|
62
|
+
## What's going on
|
|
61
63
|
|
|
62
64
|
- **Router** – Defines routes; here we attach a single `GET /` to `handler`.
|
|
63
65
|
- **handler** – An async function that returns a string; Axum sends it as `text/plain` with status 200.
|