aedes 1.0.0 → 1.0.2

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.
@@ -0,0 +1,14 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "mcp__github__get_issue",
5
+ "Bash(npm run:*)",
6
+ "Bash(git checkout:*)",
7
+ "Bash(git push:*)",
8
+ "Bash(gh pr:*)",
9
+ "mcp__github__add_issue_comment",
10
+ "Bash(git add:*)",
11
+ "Bash(git commit:*)"
12
+ ]
13
+ }
14
+ }
package/aedes.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './types/instance'
2
- export * from './types/packet'
3
- export * from './types/client'
1
+ export * from './types/instance.js'
2
+ export * from './types/packet.js'
3
+ export * from './types/client.js'
package/docs/Examples.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  ```js
7
7
  import { createServer } from 'node:net'
8
- import Aedes from 'aedes'
8
+ import { Aedes } from 'aedes'
9
9
 
10
10
  const port = 1883
11
11
 
package/package.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "aedes",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Stream-based MQTT broker",
5
- "exports": "./aedes.js",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./aedes.d.ts",
8
+ "default": "./aedes.js"
9
+ }
10
+ },
6
11
  "type": "module",
7
12
  "types": "aedes.d.ts",
8
13
  "scripts": {
@@ -7,7 +7,7 @@ import type {
7
7
  Connection
8
8
  } from '../../aedes.js'
9
9
  import { Aedes } from '../../aedes.js'
10
- import type { AedesPublishPacket, ConnackPacket, ConnectPacket, PingreqPacket, PublishPacket, PubrelPacket, Subscription, SubscribePacket, UnsubscribePacket } from '../../types/packet'
10
+ import type { AedesPublishPacket, ConnackPacket, ConnectPacket, PingreqPacket, PublishPacket, PubrelPacket, Subscription, SubscribePacket, UnsubscribePacket } from '../../types/packet.js'
11
11
  import { expectType } from 'tsd'
12
12
 
13
13
  // Aedes server
package/types/client.d.ts CHANGED
@@ -5,8 +5,8 @@ import {
5
5
  Subscription,
6
6
  Subscriptions,
7
7
  UnsubscribePacket
8
- } from './packet'
9
- import { Connection } from './instance'
8
+ } from './packet.js'
9
+ import { Connection } from './instance.js'
10
10
  import { EventEmitter } from 'node:events'
11
11
 
12
12
  export interface Client extends EventEmitter {
@@ -1,7 +1,7 @@
1
1
  import { Duplex } from 'node:stream'
2
2
  import { Socket } from 'node:net'
3
3
  import { IncomingMessage } from 'node:http'
4
- import { Client } from './client'
4
+ import { Client } from './client.js'
5
5
  import type {
6
6
  AedesPublishPacket,
7
7
  ConnectPacket,
@@ -10,7 +10,7 @@ import type {
10
10
  PingreqPacket,
11
11
  PublishPacket,
12
12
  PubrelPacket
13
- } from './packet'
13
+ } from './packet.js'
14
14
  import { EventEmitter } from 'node:events'
15
15
 
16
16
  type LastHearthbeatTimestamp = Date
package/types/packet.d.ts CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  ISubscription,
10
10
  IUnsubscribePacket
11
11
  } from 'mqtt-packet'
12
- import { Client } from './client'
12
+ import { Client } from './client.js'
13
13
 
14
14
  export type SubscribePacket = ISubscribePacket & { cmd: 'subscribe' }
15
15
  export type UnsubscribePacket = IUnsubscribePacket & { cmd: 'unsubscribe' }