@pylonsync/create-pylon 0.3.170 → 0.3.171

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": "@pylonsync/create-pylon",
3
- "version": "0.3.170",
3
+ "version": "0.3.171",
4
4
  "description": "Scaffold a new Pylon app — realtime backend + web/mobile/expo frontends in one command. Run via `npm create @pylonsync/pylon@latest`.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -6,6 +6,10 @@ import { mutation, v } from "@pylonsync/functions";
6
6
  * follow-up read.
7
7
  */
8
8
  export default mutation({
9
+ // `public` matches the wide-open Widget policy in schema.ts so this
10
+ // demo works without sign-in. When you wire auth, switch to "user"
11
+ // (the framework default) and add a session flow.
12
+ auth: "public",
9
13
  args: { name: v.string() },
10
14
  async handler(ctx, args: { name: string }) {
11
15
  const trimmed = args.name.trim();
@@ -6,6 +6,7 @@ import { query } from "@pylonsync/functions";
6
6
  * whenever a row is inserted, updated, or deleted.
7
7
  */
8
8
  export default query({
9
+ auth: "public",
9
10
  args: {},
10
11
  async handler(ctx) {
11
12
  const rows = await ctx.db.query("Widget", {});
@@ -6,6 +6,10 @@ import { mutation, v } from "@pylonsync/functions";
6
6
  * room for inserts-between without needing global renumber.
7
7
  */
8
8
  export default mutation({
9
+ // `public` matches the wide-open Todo policy in schema.ts so this
10
+ // demo works without sign-in. When you wire auth, switch to "user"
11
+ // (the framework default) and add a session flow.
12
+ auth: "public",
9
13
  args: { title: v.string() },
10
14
  async handler(ctx, args: { title: string }) {
11
15
  const existing = await ctx.db.query("Todo", {});
@@ -5,6 +5,7 @@ import { mutation, v } from "@pylonsync/functions";
5
5
  * the client can show a "todo removed" toast or animate it out.
6
6
  */
7
7
  export default mutation({
8
+ auth: "public",
8
9
  args: { id: v.id("Todo") },
9
10
  async handler(ctx, args: { id: string }) {
10
11
  const snapshot = await ctx.db.get("Todo", args.id);
@@ -4,6 +4,7 @@ import { mutation, v } from "@pylonsync/functions";
4
4
  * Rename a Todo. Trims whitespace; rejects empty titles.
5
5
  */
6
6
  export default mutation({
7
+ auth: "public",
7
8
  args: { id: v.id("Todo"), title: v.string() },
8
9
  async handler(ctx, args: { id: string; title: string }) {
9
10
  const trimmed = args.title.trim();
@@ -6,6 +6,7 @@ import { query } from "@pylonsync/functions";
6
6
  * a fallback so the list stays deterministic.
7
7
  */
8
8
  export default query({
9
+ auth: "public",
9
10
  args: {},
10
11
  async handler(ctx) {
11
12
  const rows = await ctx.db.query("Todo", {});
@@ -6,6 +6,7 @@ import { mutation, v } from "@pylonsync/functions";
6
6
  * between any two rows before precision matters.
7
7
  */
8
8
  export default mutation({
9
+ auth: "public",
9
10
  args: { id: v.id("Todo"), position: v.number() },
10
11
  async handler(ctx, args: { id: string; position: number }) {
11
12
  await ctx.db.update("Todo", args.id, { position: args.position });
@@ -5,6 +5,7 @@ import { mutation, v } from "@pylonsync/functions";
5
5
  * `ctx.db.update` which is only on writable ctx variants.
6
6
  */
7
7
  export default mutation({
8
+ auth: "public",
8
9
  args: { id: v.id("Todo"), done: v.bool() },
9
10
  async handler(ctx, args: { id: string; done: boolean }) {
10
11
  await ctx.db.update("Todo", args.id, { done: args.done });
@@ -15,17 +15,17 @@
15
15
  "@pylonsync/react": "^__PYLON_VERSION__",
16
16
  "@pylonsync/react-native": "^__PYLON_VERSION__",
17
17
  "@pylonsync/sync": "^__PYLON_VERSION__",
18
- "@react-native-async-storage/async-storage": "1.23.1",
19
- "@react-native-community/netinfo": "11.3.1",
20
- "expo": "~51.0.0",
21
- "expo-status-bar": "~1.12.1",
22
- "react": "19.0.0",
23
- "react-dom": "19.0.0",
24
- "react-native": "0.74.5"
18
+ "@react-native-async-storage/async-storage": "~3.1.0",
19
+ "@react-native-community/netinfo": "~12.0.0",
20
+ "expo": "~56.0.0",
21
+ "expo-status-bar": "~56.0.0",
22
+ "react": "19.2.0",
23
+ "react-dom": "19.2.0",
24
+ "react-native": "0.85.3"
25
25
  },
26
26
  "devDependencies": {
27
- "@babel/core": "^7.20.0",
28
- "@types/react": "^19.0.0",
29
- "typescript": "^5.5.0"
27
+ "@babel/core": "^7.25.0",
28
+ "@types/react": "~19.2.0",
29
+ "typescript": "~5.9.0"
30
30
  }
31
31
  }
@@ -15,17 +15,17 @@
15
15
  "@pylonsync/react": "^__PYLON_VERSION__",
16
16
  "@pylonsync/react-native": "^__PYLON_VERSION__",
17
17
  "@pylonsync/sync": "^__PYLON_VERSION__",
18
- "@react-native-async-storage/async-storage": "1.23.1",
19
- "@react-native-community/netinfo": "11.3.1",
20
- "expo": "~51.0.0",
21
- "expo-status-bar": "~1.12.1",
22
- "react": "19.0.0",
23
- "react-dom": "19.0.0",
24
- "react-native": "0.74.5"
18
+ "@react-native-async-storage/async-storage": "~3.1.0",
19
+ "@react-native-community/netinfo": "~12.0.0",
20
+ "expo": "~56.0.0",
21
+ "expo-status-bar": "~56.0.0",
22
+ "react": "19.2.0",
23
+ "react-dom": "19.2.0",
24
+ "react-native": "0.85.3"
25
25
  },
26
26
  "devDependencies": {
27
- "@babel/core": "^7.20.0",
28
- "@types/react": "^19.0.0",
29
- "typescript": "^5.5.0"
27
+ "@babel/core": "^7.25.0",
28
+ "@types/react": "~19.2.0",
29
+ "typescript": "~5.9.0"
30
30
  }
31
31
  }
@@ -15,17 +15,17 @@
15
15
  "@pylonsync/react": "^__PYLON_VERSION__",
16
16
  "@pylonsync/react-native": "^__PYLON_VERSION__",
17
17
  "@pylonsync/sync": "^__PYLON_VERSION__",
18
- "@react-native-async-storage/async-storage": "1.23.1",
19
- "@react-native-community/netinfo": "11.3.1",
20
- "expo": "~51.0.0",
21
- "expo-status-bar": "~1.12.1",
22
- "react": "19.0.0",
23
- "react-dom": "19.0.0",
24
- "react-native": "0.74.5"
18
+ "@react-native-async-storage/async-storage": "~3.1.0",
19
+ "@react-native-community/netinfo": "~12.0.0",
20
+ "expo": "~56.0.0",
21
+ "expo-status-bar": "~56.0.0",
22
+ "react": "19.2.0",
23
+ "react-dom": "19.2.0",
24
+ "react-native": "0.85.3"
25
25
  },
26
26
  "devDependencies": {
27
- "@babel/core": "^7.20.0",
28
- "@types/react": "^19.0.0",
29
- "typescript": "^5.5.0"
27
+ "@babel/core": "^7.25.0",
28
+ "@types/react": "~19.2.0",
29
+ "typescript": "~5.9.0"
30
30
  }
31
31
  }
@@ -15,17 +15,17 @@
15
15
  "@pylonsync/react": "^__PYLON_VERSION__",
16
16
  "@pylonsync/react-native": "^__PYLON_VERSION__",
17
17
  "@pylonsync/sync": "^__PYLON_VERSION__",
18
- "@react-native-async-storage/async-storage": "1.23.1",
19
- "@react-native-community/netinfo": "11.3.1",
20
- "expo": "~51.0.0",
21
- "expo-status-bar": "~1.12.1",
22
- "react": "19.0.0",
23
- "react-dom": "19.0.0",
24
- "react-native": "0.74.5"
18
+ "@react-native-async-storage/async-storage": "~3.1.0",
19
+ "@react-native-community/netinfo": "~12.0.0",
20
+ "expo": "~56.0.0",
21
+ "expo-status-bar": "~56.0.0",
22
+ "react": "19.2.0",
23
+ "react-dom": "19.2.0",
24
+ "react-native": "0.85.3"
25
25
  },
26
26
  "devDependencies": {
27
- "@babel/core": "^7.20.0",
28
- "@types/react": "^19.0.0",
29
- "typescript": "^5.5.0"
27
+ "@babel/core": "^7.25.0",
28
+ "@types/react": "~19.2.0",
29
+ "typescript": "~5.9.0"
30
30
  }
31
31
  }