create-wirejs-app 2.0.38-table-resource → 2.0.40-table-resource

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-wirejs-app",
3
- "version": "2.0.38-table-resource",
3
+ "version": "2.0.40-table-resource",
4
4
  "description": "Initializes a wirejs package.",
5
5
  "author": "Jon Wire",
6
6
  "license": "MIT",
@@ -9,8 +9,8 @@ import {
9
9
  const userTodos = new DistributedTable('app', 'userTodos', {
10
10
  parse: PassThruParser<Todo & { userId: string }>,
11
11
  key: {
12
- partition: 'userId',
13
- sort: ['id']
12
+ partition: { field: 'userId', type: 'string' },
13
+ sort: { field: 'id', type: 'string' }
14
14
  }
15
15
  });
16
16
 
@@ -29,7 +29,7 @@ export const todos = withContext(context => ({
29
29
  const user = await auth.requireCurrentUser(context);
30
30
 
31
31
  try {
32
- const todos = await userTodos.query({ userId: user.id });
32
+ const todos = userTodos.query({ userId: user.id });
33
33
  const todosArray = await Array.fromAsync(todos);
34
34
  return todosArray
35
35
  .sort((a, b) => a.order - b.order)
@@ -11,10 +11,10 @@
11
11
  "dompurify": "^3.2.3",
12
12
  "marked": "^15.0.6",
13
13
  "wirejs-dom": "^1.0.38",
14
- "wirejs-resources": "^0.1.33-table-resource"
14
+ "wirejs-resources": "^0.1.35-table-resource"
15
15
  },
16
16
  "devDependencies": {
17
- "wirejs-scripts": "^3.0.31-table-resource",
17
+ "wirejs-scripts": "^3.0.33-table-resource",
18
18
  "typescript": "^5.7.3"
19
19
  },
20
20
  "scripts": {