@fluxerjs/core 1.3.1 → 2.0.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/README.md CHANGED
@@ -5,7 +5,7 @@ Main client for the Fluxer bot SDK.
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- npm install @fluxerjs/core
8
+ pnpm add @fluxerjs/core
9
9
  ```
10
10
 
11
11
  ## Usage
@@ -23,6 +23,12 @@ client.on(Events.MessageCreate, async (m) => {
23
23
  await client.login(process.env.FLUXER_BOT_TOKEN);
24
24
  ```
25
25
 
26
+ Self-hosted / multi-instance: use `Client.fromDiscovery(origin)` or `ClientOptions.instance`.
27
+ **Beta:** `ClientCluster` (also `@fluxerjs/core/cluster`) can add/remove/restart independently-tokened
28
+ runtimes without process restart — see `examples/multi-instance-bot.js`. API may change.
29
+ Supports `addAll()`, `restart(id, { token })` (token must be re-supplied), typed lifecycle events,
30
+ and runtime `status` including `error` + `lastError`.
31
+
26
32
  For voice, add `@fluxerjs/voice`. For embeds, use `EmbedBuilder`.
27
33
 
28
34
  ## Subpath imports (tree-shaking)
@@ -32,5 +38,6 @@ Bundlers can pull smaller graphs when you import only what you need:
32
38
  - `@fluxerjs/core/client` — `Client`, `Events`, `ClientOptions`
33
39
  - `@fluxerjs/core/errors` — `FluxerError`, `ErrorCodes`
34
40
  - `@fluxerjs/core/message` — `Message`, `PartialMessage`, send/edit types
41
+ - `@fluxerjs/core/cluster` — **beta** `ClientCluster` multi-runtime supervisor
35
42
 
36
43
  Related: `@fluxerjs/types/routes` (route builders only), `@fluxerjs/rest/request-manager` (HTTP layer without the full `REST` facade).
package/dist/client.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- export { C as CacheSizeLimits, f as Client, g as ClientEventMethods, h as ClientEvents, i as ClientOptions, E as Events } from './subpath-message-CZC4oGko.mjs';
1
+ export { C as CacheSizeLimits, r as Client, s as ClientEventMethods, t as ClientEvents, u as ClientOptions, H as Events } from './subpath-message-Acbzr5HA.mjs';
2
+ import '@fluxerjs/collection';
3
+ import '@fluxerjs/types';
2
4
  import 'events';
3
5
  import '@fluxerjs/rest';
4
6
  import '@fluxerjs/ws';
5
- import '@fluxerjs/types';
6
- import '@fluxerjs/collection';
7
7
  import '@fluxerjs/builders';
8
8
  import '@fluxerjs/util';
package/dist/client.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export { C as CacheSizeLimits, f as Client, g as ClientEventMethods, h as ClientEvents, i as ClientOptions, E as Events } from './subpath-message-CZC4oGko.js';
1
+ export { C as CacheSizeLimits, r as Client, s as ClientEventMethods, t as ClientEvents, u as ClientOptions, H as Events } from './subpath-message-Acbzr5HA.js';
2
+ import '@fluxerjs/collection';
3
+ import '@fluxerjs/types';
2
4
  import 'events';
3
5
  import '@fluxerjs/rest';
4
6
  import '@fluxerjs/ws';
5
- import '@fluxerjs/types';
6
- import '@fluxerjs/collection';
7
7
  import '@fluxerjs/builders';
8
8
  import '@fluxerjs/util';