create-nifra 3.3.0 → 3.5.0
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/dist/auth.js +1 -1
- package/dist/scaffold/frameworks.d.ts +1 -1
- package/dist/scaffold/frameworks.js +1 -1
- package/package.json +1 -1
- package/template/package.json +5 -5
- package/template-batteries/package.json +7 -7
- package/template-isr/package.json +7 -7
- package/template-site/Dockerfile +5 -0
package/dist/auth.js
CHANGED
|
@@ -33,7 +33,7 @@ export const AUTH_PRESETS = {
|
|
|
33
33
|
label: "better-auth",
|
|
34
34
|
note: "email/password + sessions, mounted at /api/auth/* - add OAuth providers in auth.ts.",
|
|
35
35
|
// @nifrajs/better-auth mounts it; better-auth is the implementation (peer-installed alongside).
|
|
36
|
-
deps: { "@nifrajs/better-auth": "^3.
|
|
36
|
+
deps: { "@nifrajs/better-auth": "^3.5.0", "better-auth": "^1.2.0" },
|
|
37
37
|
},
|
|
38
38
|
};
|
|
39
39
|
/** The better-auth `database` adapter expression + its import line, for the scaffolded DB's ORM. */
|
|
@@ -62,7 +62,7 @@ export interface FrameworkSpec {
|
|
|
62
62
|
* ships templates installing the PREVIOUS release. `scaffold-version.test.ts` now fails when this
|
|
63
63
|
* drifts from what core is publishing, so the footgun is a red test rather than a silent regression.
|
|
64
64
|
*/
|
|
65
|
-
export declare const NIFRA_DEP_RANGE = "^3.
|
|
65
|
+
export declare const NIFRA_DEP_RANGE = "^3.5.0";
|
|
66
66
|
/**
|
|
67
67
|
* React is first because it is the default (`--framework` omitted scaffolds it), and because the
|
|
68
68
|
* other four are most easily read as deltas from it.
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* ships templates installing the PREVIOUS release. `scaffold-version.test.ts` now fails when this
|
|
21
21
|
* drifts from what core is publishing, so the footgun is a red test rather than a silent regression.
|
|
22
22
|
*/
|
|
23
|
-
export const NIFRA_DEP_RANGE = "^3.
|
|
23
|
+
export const NIFRA_DEP_RANGE = "^3.5.0";
|
|
24
24
|
/**
|
|
25
25
|
* React is first because it is the default (`--framework` omitted scaffolds it), and because the
|
|
26
26
|
* other four are most easily read as deltas from it.
|
package/package.json
CHANGED
package/template/package.json
CHANGED
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"typecheck": "tsc --noEmit"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@nifrajs/client": "^3.
|
|
15
|
-
"@nifrajs/core": "^3.
|
|
16
|
-
"@nifrajs/middleware": "^3.
|
|
17
|
-
"@nifrajs/schema": "^3.
|
|
14
|
+
"@nifrajs/client": "^3.5.0",
|
|
15
|
+
"@nifrajs/core": "^3.5.0",
|
|
16
|
+
"@nifrajs/middleware": "^3.5.0",
|
|
17
|
+
"@nifrajs/schema": "^3.5.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@nifrajs/cli": "^3.
|
|
20
|
+
"@nifrajs/cli": "^3.5.0",
|
|
21
21
|
"@types/bun": "latest",
|
|
22
22
|
"typescript": "^6.0.3"
|
|
23
23
|
}
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
"typecheck": "tsc --noEmit"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@nifrajs/cache": "^3.
|
|
15
|
-
"@nifrajs/client": "^3.
|
|
16
|
-
"@nifrajs/core": "^3.
|
|
17
|
-
"@nifrajs/jobs": "^3.
|
|
18
|
-
"@nifrajs/schema": "^3.
|
|
19
|
-
"@nifrajs/storage": "^3.
|
|
14
|
+
"@nifrajs/cache": "^3.5.0",
|
|
15
|
+
"@nifrajs/client": "^3.5.0",
|
|
16
|
+
"@nifrajs/core": "^3.5.0",
|
|
17
|
+
"@nifrajs/jobs": "^3.5.0",
|
|
18
|
+
"@nifrajs/schema": "^3.5.0",
|
|
19
|
+
"@nifrajs/storage": "^3.5.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@nifrajs/cli": "^3.
|
|
22
|
+
"@nifrajs/cli": "^3.5.0",
|
|
23
23
|
"@types/bun": "latest",
|
|
24
24
|
"typescript": "^6.0.3"
|
|
25
25
|
}
|
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
"check": "nifra check && nifra assure"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@nifrajs/client": "^3.
|
|
14
|
-
"@nifrajs/core": "^3.
|
|
15
|
-
"@nifrajs/middleware": "^3.
|
|
16
|
-
"@nifrajs/schema": "^3.
|
|
17
|
-
"@nifrajs/web": "^3.
|
|
18
|
-
"@nifrajs/web-react": "^3.
|
|
13
|
+
"@nifrajs/client": "^3.5.0",
|
|
14
|
+
"@nifrajs/core": "^3.5.0",
|
|
15
|
+
"@nifrajs/middleware": "^3.5.0",
|
|
16
|
+
"@nifrajs/schema": "^3.5.0",
|
|
17
|
+
"@nifrajs/web": "^3.5.0",
|
|
18
|
+
"@nifrajs/web-react": "^3.5.0",
|
|
19
19
|
"react": "^19.0.0",
|
|
20
20
|
"react-dom": "^19.0.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@nifrajs/cli": "^3.
|
|
23
|
+
"@nifrajs/cli": "^3.5.0",
|
|
24
24
|
"@types/react": "^19.0.0",
|
|
25
25
|
"@types/react-dom": "^19.0.0",
|
|
26
26
|
"typescript": "^6.0.3"
|
package/template-site/Dockerfile
CHANGED
|
@@ -16,5 +16,10 @@ ENV NODE_ENV=production
|
|
|
16
16
|
ENV PORT=3000
|
|
17
17
|
# build:node emits a self-contained server-bundle + the client assets it serves from disk.
|
|
18
18
|
COPY --from=build /app/dist-node ./dist-node
|
|
19
|
+
# The production bundle does not need elevated privileges. Keep a compromised request handler from
|
|
20
|
+
# inheriting root inside the container; applications that need writable paths should mount them
|
|
21
|
+
# explicitly with ownership for this user.
|
|
22
|
+
RUN groupadd --system nifra && useradd --system --gid nifra --create-home nifra
|
|
23
|
+
USER nifra
|
|
19
24
|
EXPOSE 3000
|
|
20
25
|
CMD ["node", "dist-node/server-node.js"]
|