create-demiurge 0.2.0-beta.4 → 0.2.0-beta.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-demiurge",
3
- "version": "0.2.0-beta.4",
3
+ "version": "0.2.0-beta.6",
4
4
  "description": "Create a Demiurge application.",
5
5
  "license": "MIT",
6
6
  "author": "North Shore Software Labs",
@@ -1,6 +1,10 @@
1
1
  import { defineRoutePolicy } from "@demiurgejs/core";
2
2
 
3
3
  export const policy = defineRoutePolicy({
4
+ // Demiurge denies a route that inherits no access declaration. This
5
+ // application is public, so the root policy states that intent. Replace this
6
+ // declaration with access: { authorize } for a subtree that needs a check.
7
+ access: { public: true },
4
8
  security: {
5
9
  request: {
6
10
  allowedMethods: ["GET"],
@@ -1,6 +1,11 @@
1
- import { defineRoutePolicy } from "@demiurgejs/core";
1
+ import { defineRoutePolicy, security } from "@demiurgejs/core";
2
2
 
3
3
  export const policy = defineRoutePolicy({
4
+ // Demiurge denies a route that inherits no access declaration. This
5
+ // application is public, so the root policy states that intent. Replace this
6
+ // declaration with access: { authorize } for a subtree that needs a check.
7
+ access: { public: true },
8
+ document: security.strict(),
4
9
  security: {
5
10
  request: {
6
11
  allowedMethods: ["GET"],
@@ -9,7 +9,7 @@
9
9
  "typecheck": "tsc --noEmit"
10
10
  },
11
11
  "dependencies": {
12
- "@demiurgejs/core": "^0.2.0-beta.4",
12
+ "@demiurgejs/core": "^0.2.0-beta.6",
13
13
  "react": "^19.0.0",
14
14
  "react-dom": "^19.0.0"
15
15
  },
@@ -11,5 +11,5 @@
11
11
  "jsx": "react-jsx",
12
12
  "types": ["node", "vite/client"]
13
13
  },
14
- "include": ["src", "vite.config.ts"]
14
+ "include": ["src", ".demiurge/route-manifest.d.ts", "vite.config.ts"]
15
15
  }