@raystack/frontier 0.84.1 → 0.85.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.
@@ -1,4 +1,5 @@
1
1
  export { createConnectQueryKey, useInfiniteQuery, useMutation, useQuery, useTransport } from '@connectrpc/connect-query';
2
+ export { Code, ConnectError } from '@connectrpc/connect';
2
3
  export { FrontierServiceQueries } from '@raystack/proton/frontier';
3
4
  export { useQueryClient } from '@tanstack/react-query';
4
5
  export { create } from '@bufbuild/protobuf';
@@ -21,6 +21,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  // hooks/index.ts
22
22
  var hooks_exports = {};
23
23
  __export(hooks_exports, {
24
+ Code: () => import_connect.Code,
25
+ ConnectError: () => import_connect.ConnectError,
24
26
  FrontierServiceQueries: () => import_frontier.FrontierServiceQueries,
25
27
  create: () => import_protobuf.create,
26
28
  createConnectQueryKey: () => import_connect_query.createConnectQueryKey,
@@ -32,11 +34,14 @@ __export(hooks_exports, {
32
34
  });
33
35
  module.exports = __toCommonJS(hooks_exports);
34
36
  var import_connect_query = require("@connectrpc/connect-query");
37
+ var import_connect = require("@connectrpc/connect");
35
38
  var import_frontier = require("@raystack/proton/frontier");
36
39
  var import_react_query = require("@tanstack/react-query");
37
40
  var import_protobuf = require("@bufbuild/protobuf");
38
41
  // Annotate the CommonJS export names for ESM import in node:
39
42
  0 && (module.exports = {
43
+ Code,
44
+ ConnectError,
40
45
  FrontierServiceQueries,
41
46
  create,
42
47
  createConnectQueryKey,
@@ -8,10 +8,13 @@ import {
8
8
  useTransport,
9
9
  createConnectQueryKey
10
10
  } from "@connectrpc/connect-query";
11
+ import { ConnectError, Code } from "@connectrpc/connect";
11
12
  import { FrontierServiceQueries } from "@raystack/proton/frontier";
12
13
  import { useQueryClient } from "@tanstack/react-query";
13
14
  import { create } from "@bufbuild/protobuf";
14
15
  export {
16
+ Code,
17
+ ConnectError,
15
18
  FrontierServiceQueries,
16
19
  create,
17
20
  createConnectQueryKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raystack/frontier",
3
- "version": "0.84.1",
3
+ "version": "0.85.0",
4
4
  "description": "A js library for frontier",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -10,7 +10,6 @@
10
10
  "dist/**/*",
11
11
  "react/dist/**/*",
12
12
  "hooks/dist/**/*",
13
- "api-client/dist/**/*",
14
13
  "README.md"
15
14
  ],
16
15
  "scripts": {
@@ -22,9 +21,7 @@
22
21
  "release:ci": "release-it --ci --no-increment --npm.ignoreVersion",
23
22
  "release:dry": "release-it --dry-run --npm.ignoreVersion",
24
23
  "release": "release-it",
25
- "test": "NODE_OPTIONS=--experimental-vm-modules jest",
26
- "gen:client": "npx swagger-typescript-api -p ../../../../proto/apidocs.swagger.yaml -o api-client --modular",
27
- "build:client": "node scripts/gen-swagger-client.mjs"
24
+ "test": "NODE_OPTIONS=--experimental-vm-modules jest"
28
25
  },
29
26
  "author": "pyadav9678@gmail.com",
30
27
  "license": "Apache-2.0",
@@ -58,12 +55,6 @@
58
55
  "import": "./hooks/dist/index.mjs",
59
56
  "module": "./hooks/dist/index.mjs",
60
57
  "require": "./hooks/dist/index.js"
61
- },
62
- "./api-client": {
63
- "types": "./api-client/dist/index.d.ts",
64
- "import": "./api-client/dist/index.mjs",
65
- "module": "./api-client/dist/index.mjs",
66
- "require": "./api-client/dist/index.js"
67
58
  }
68
59
  },
69
60
  "devDependencies": {
@@ -90,7 +81,6 @@
90
81
  "release-it": "^16.3.0",
91
82
  "semver": "^7.7.2",
92
83
  "size-limit": "^8.2.6",
93
- "swagger-typescript-api": "^13.2.1",
94
84
  "ts-jest": "^29.3.4",
95
85
  "tsup": "^6.7.0",
96
86
  "typescript": "^5.8.3"
@@ -101,7 +91,7 @@
101
91
  "@connectrpc/connect-query": "^2.1.1",
102
92
  "@connectrpc/connect-web": "^2.0.2",
103
93
  "@hookform/resolvers": "^3.10.0",
104
- "@raystack/proton": "0.1.0-d7ccfeef8ed0a304b5da3537c1b2bb5e7d99c77c",
94
+ "@raystack/proton": "0.1.0-80fc5ba1e538e38d5ca190386af1e69ee64584ee",
105
95
  "@tanstack/react-query": "^5.83.0",
106
96
  "@tanstack/react-router": "1.58.17",
107
97
  "axios": "^1.9.0",