@rebasepro/studio 0.12.1-canary.g389e9b2 → 0.12.1-canary.g4e7bcbf

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@rebasepro/studio",
3
3
  "type": "module",
4
- "version": "0.12.1-canary.g389e9b2",
4
+ "version": "0.12.1-canary.g4e7bcbf",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.es.js",
7
7
  "module": "./dist/index.es.js",
@@ -16,19 +16,19 @@
16
16
  "pgsql-ast-parser": "12.0.2",
17
17
  "prism-react-renderer": "^2.4.1",
18
18
  "react-dropzone": "^19.1.1",
19
- "@rebasepro/admin-types": "0.12.1-canary.g389e9b2",
20
- "@rebasepro/client": "0.12.1-canary.g389e9b2",
21
- "@rebasepro/app": "0.12.1-canary.g389e9b2",
22
- "@rebasepro/common": "0.12.1-canary.g389e9b2",
23
- "@rebasepro/types": "0.12.1-canary.g389e9b2",
24
- "@rebasepro/ui": "0.12.1-canary.g389e9b2",
25
- "@rebasepro/utils": "0.12.1-canary.g389e9b2"
19
+ "@rebasepro/admin-types": "0.12.1-canary.g4e7bcbf",
20
+ "@rebasepro/app": "0.12.1-canary.g4e7bcbf",
21
+ "@rebasepro/client": "0.12.1-canary.g4e7bcbf",
22
+ "@rebasepro/common": "0.12.1-canary.g4e7bcbf",
23
+ "@rebasepro/types": "0.12.1-canary.g4e7bcbf",
24
+ "@rebasepro/ui": "0.12.1-canary.g4e7bcbf",
25
+ "@rebasepro/utils": "0.12.1-canary.g4e7bcbf"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": ">=19.2.7",
29
29
  "react-dom": ">=19.2.7",
30
30
  "react-router": "^8.3.0",
31
- "@rebasepro/admin": "0.12.1-canary.g389e9b2"
31
+ "@rebasepro/admin": "0.12.1-canary.g4e7bcbf"
32
32
  },
33
33
  "peerDependenciesMeta": {
34
34
  "@rebasepro/admin": {
@@ -111,9 +111,15 @@ summary: "Get one" }
111
111
  const result = parseOpenApiSpec(spec);
112
112
  const users = result.groups.find(g => g.tag === "Users");
113
113
  expect(users).toBeDefined();
114
- // /api/data/users first (get, post, delete), then /api/data/users/{id} (get)
115
- const methods = users!.endpoints.map(e => `${e.path}:${e.method}`);
116
- expect(methods[0]).toContain("/api/data/users:get");
114
+ // Path first, then the CRUD method order — not the order the spec
115
+ // happened to declare them in (delete, get, post above). Asserting only
116
+ // `[0]` left both halves of that free to be wrong.
117
+ expect(users!.endpoints.map(e => `${e.path}:${e.method}`)).toEqual([
118
+ "/api/data/users:get",
119
+ "/api/data/users:post",
120
+ "/api/data/users:delete",
121
+ "/api/data/users/{id}:get"
122
+ ]);
117
123
  });
118
124
 
119
125
  it("respects tag order from spec.tags", () => {