dfx 0.83.0 → 0.84.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.
@@ -5,7 +5,7 @@ import { DiscordConfig } from "dfx/DiscordConfig";
5
5
  import type { Message } from "dfx/DiscordGateway/DiscordWS";
6
6
  import { DiscordWS } from "dfx/DiscordGateway/DiscordWS";
7
7
  import { RateLimiter } from "dfx/RateLimit";
8
- export declare const make: Effect.Effect<DiscordConfig | RateLimiter | import("dfx/DiscordGateway/Messaging").Messsaging | DiscordWS, never, {
8
+ export declare const make: Effect.Effect<RateLimiter | DiscordConfig | import("dfx/DiscordGateway/Messaging").Messsaging | DiscordWS, never, {
9
9
  readonly connect: (shard: [id: number, count: number]) => Effect.Effect<import("effect/Scope").Scope, never, {
10
10
  readonly id: [id: number, count: number];
11
11
  readonly send: (p: Message) => Effect.Effect<never, never, boolean>;
@@ -21,7 +21,7 @@ export declare const Shard: Tag<Shard, {
21
21
  readonly send: (p: Message) => Effect.Effect<never, never, boolean>;
22
22
  }>;
23
23
  }>;
24
- export declare const ShardLive: Layer.Layer<DiscordConfig | import("dfx/RateLimit").RateLimitStore | import("dfx/DiscordGateway/DiscordWS").DiscordWSCodec, never, Shard>;
24
+ export declare const ShardLive: Layer.Layer<import("dfx/RateLimit").RateLimitStore | DiscordConfig | import("dfx/DiscordGateway/DiscordWS").DiscordWSCodec, never, Shard>;
25
25
  export interface RunningShard extends Effect.Effect.Success<ReturnType<ShardService["connect"]>> {
26
26
  }
27
27
  export {};
@@ -47,7 +47,7 @@ export declare class SubCommandNotFound {
47
47
  readonly _tag = "SubCommandNotFound";
48
48
  constructor(data: Discord.ApplicationCommandDatum);
49
49
  }
50
- export declare const handleSubCommands: <NER extends Record<string, Effect.Effect<any, any, Discord.InteractionResponse>>>(commands: NER) => Effect.Effect<Discord.Interaction | Discord.ApplicationCommandDatum | Exclude<[NER[keyof NER]] extends [{
50
+ export declare const handleSubCommands: <NER extends Record<string, Effect.Effect<any, any, Discord.InteractionResponse>>>(commands: NER) => Effect.Effect<Discord.ApplicationCommandDatum | Discord.Interaction | Exclude<[NER[keyof NER]] extends [{
51
51
  [Effect.EffectTypeId]: {
52
52
  _R: (_: never) => infer R;
53
53
  };
package/mjs/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const LIB_VERSION = "0.83.0";
1
+ export const LIB_VERSION = "0.84.0";
2
2
  //# sourceMappingURL=version.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dfx",
3
- "version": "0.83.0",
3
+ "version": "0.84.0",
4
4
  "description": "Effect-TS discord library",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,11 +36,11 @@
36
36
  "author": "Tim Smart <hello@timsmart.co>",
37
37
  "dependencies": {
38
38
  "isomorphic-ws": "^5.0.0",
39
- "ws": "^8.15.1"
39
+ "ws": "^8.16.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "@effect/platform": "^0.40.0",
43
- "effect": "^2.0.0"
42
+ "@effect/platform": "^0.42.0",
43
+ "effect": "^2.0.4"
44
44
  },
45
45
  "optionalDependencies": {
46
46
  "bufferutil": "^4.0.8",
@@ -48,6 +48,6 @@
48
48
  "utf-8-validate": "^6.0.3",
49
49
  "zlib-sync": "^0.1.9"
50
50
  },
51
- "gitHead": "f57f4a54c5f31632d8c618aa966f9a8943d1b564",
51
+ "gitHead": "c4fd73ba4f894d87d359fc66dbdfe73aaeac293e",
52
52
  "main": "./index.js"
53
53
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const LIB_VERSION = "0.83.0";
1
+ export const LIB_VERSION = "0.84.0";
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const LIB_VERSION = "0.83.0";
1
+ export declare const LIB_VERSION = "0.84.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.LIB_VERSION = void 0;
7
- const LIB_VERSION = exports.LIB_VERSION = "0.83.0";
7
+ const LIB_VERSION = exports.LIB_VERSION = "0.84.0";
8
8
  //# sourceMappingURL=version.js.map