@effected/github 0.2.3 → 0.3.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.
package/GitHubApp.js CHANGED
@@ -16,7 +16,7 @@ import githubAppJwt from "universal-github-app-jwt";
16
16
  *
17
17
  * @public
18
18
  */
19
- var GitHubAppError = class GitHubAppError extends Schema.TaggedErrorClass()("GitHubAppError", {
19
+ var GitHubAppError = class GitHubAppError extends Schema.TaggedError()("GitHubAppError", {
20
20
  /** Which step failed. */
21
21
  kind: Schema.Literals([
22
22
  "jwt",
package/GitHubError.js CHANGED
@@ -41,7 +41,7 @@ const GitHubErrorKind = Schema.Literals([
41
41
  *
42
42
  * @public
43
43
  */
44
- var GitHubError = class GitHubError extends Schema.TaggedErrorClass()("GitHubError", {
44
+ var GitHubError = class GitHubError extends Schema.TaggedError()("GitHubError", {
45
45
  /** Structural routing. Branch on this, never on the rendered message. */
46
46
  kind: GitHubErrorKind,
47
47
  /** What was attempted: a resource method (`"GitBranch.upsert"`) or a raw route. */
package/GraphQL.js CHANGED
@@ -23,7 +23,7 @@ var GraphQLErrorEntry = class extends Schema.Class("GraphQLErrorEntry")({
23
23
  *
24
24
  * @public
25
25
  */
26
- var GitHubGraphQLError = class GitHubGraphQLError extends Schema.TaggedErrorClass()("GitHubGraphQLError", {
26
+ var GitHubGraphQLError = class GitHubGraphQLError extends Schema.TaggedError()("GitHubGraphQLError", {
27
27
  /**
28
28
  * Structural routing, mirroring `GitHubError`'s.
29
29
  *
package/Repo.js CHANGED
@@ -6,7 +6,7 @@ import { Config, Context, Effect, Layer, Result, Schema } from "effect";
6
6
  *
7
7
  * @public
8
8
  */
9
- var InvalidRepoRefError = class extends Schema.TaggedErrorClass()("InvalidRepoRefError", {
9
+ var InvalidRepoRefError = class extends Schema.TaggedError()("InvalidRepoRefError", {
10
10
  /** What was handed in. */
11
11
  input: Schema.String }) {
12
12
  get message() {
@@ -66,7 +66,7 @@ var PermissionResult = class extends Schema.Class("PermissionResult")({
66
66
  *
67
67
  * @public
68
68
  */
69
- var TokenPermissionError = class extends Schema.TaggedErrorClass()("TokenPermissionError", {
69
+ var TokenPermissionError = class extends Schema.TaggedError()("TokenPermissionError", {
70
70
  /** Which assertion failed. */
71
71
  kind: Schema.Literals(["insufficient", "excess"]),
72
72
  /** The comparison that produced it. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effected/github",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "description": "Typed GitHub REST and GraphQL services over the octokit core request surface, with app auth and resource helpers.",
6
6
  "keywords": [
@@ -38,14 +38,14 @@
38
38
  "./package.json": "./package.json"
39
39
  },
40
40
  "dependencies": {
41
- "@effected/semver": "^0.3.2",
41
+ "@effected/semver": "^0.4.0",
42
42
  "@octokit/core": "^7.0.6",
43
43
  "@octokit/plugin-paginate-rest": "^14.0.0",
44
44
  "@octokit/types": "^16.0.0",
45
45
  "universal-github-app-jwt": "^2.2.2"
46
46
  },
47
47
  "peerDependencies": {
48
- "effect": "4.0.0-beta.101"
48
+ "effect": "4.0.0-beta.107"
49
49
  },
50
50
  "engines": {
51
51
  "node": ">=24.11.0"