paid-services 5.0.4 → 6.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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Versions
2
2
 
3
+ ## Version 6.0.0
4
+
5
+ ### Breaking Changes
6
+
7
+ - node.js 16 is no longer supported, node.js 18+ required
8
+
9
+ ## Version 5.0.5
10
+
11
+ - `manageTrades`: Fix advertising trades with a TorV3 network address
12
+
3
13
  ## Version 5.0.4
4
14
 
5
15
  - `createGroupChannel`, `joinGroupChannel`, `manageGroupJoin`: Double check
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021-2023 Alex Bosworth
3
+ Copyright (c) 2021-2024 Alex Bosworth
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -102,6 +102,7 @@ module.exports = ({lnd}) => {
102
102
  return {
103
103
  end: cbk => service.end = cbk,
104
104
  error: cbk => service.error = cbk,
105
+ receivers: () => sub.listenerCount('message_received'),
105
106
  request: ({type}, cbk) => listeners[type] = cbk,
106
107
  stop: ({}) => sub.removeAllListeners(),
107
108
  };
package/package.json CHANGED
@@ -7,30 +7,31 @@
7
7
  "url": "https://github.com/alexbosworth/paid-services/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@alexbosworth/fiat": "1.0.4",
11
- "async": "3.2.4",
12
- "asyncjs-util": "1.2.11",
10
+ "@alexbosworth/blockchain": "2.0.0",
11
+ "@alexbosworth/fiat": "2.0.0",
12
+ "async": "3.2.5",
13
+ "asyncjs-util": "1.2.12",
13
14
  "bech32": "2.0.0",
14
- "bolt01": "1.2.6",
15
- "bolt07": "1.8.3",
15
+ "bolt01": "2.0.0",
16
+ "bolt07": "1.8.4",
16
17
  "ecpair": "2.1.0",
17
- "goldengate": "12.0.5",
18
- "invoices": "2.2.3",
19
- "ln-service": "56.3.0",
20
- "ln-sync": "5.2.0",
21
- "psbt": "2.7.2",
22
- "p2tr": "1.3.3",
23
- "tiny-secp256k1": "2.2.1"
18
+ "goldengate": "14.0.2",
19
+ "invoices": "3.0.0",
20
+ "ln-service": "57.8.1",
21
+ "ln-sync": "6.0.2",
22
+ "psbt": "3.0.0",
23
+ "p2tr": "2.0.0",
24
+ "tiny-secp256k1": "2.2.3"
24
25
  },
25
26
  "description": "Lightning Paid Services library",
26
27
  "devDependencies": {
27
28
  "@alexbosworth/tap": "15.0.12",
28
- "ln-docker-daemons": "5.0.2",
29
+ "ln-docker-daemons": "6.0.12",
29
30
  "mock-lnd": "1.4.4",
30
31
  "secp256k1": "5.0.0"
31
32
  },
32
33
  "engines": {
33
- "node": ">=16"
34
+ "node": ">=18"
34
35
  },
35
36
  "keywords": [
36
37
  "lightning",
@@ -44,8 +45,8 @@
44
45
  "url": "https://github.com/alexbosworth/paid-services.git"
45
46
  },
46
47
  "scripts": {
47
- "integration-tests": "tap -j 2 --branches=1 --functions=1 --lines=1 --statements=1 -t 180 test/integration/*.js",
48
+ "integration-tests": "tap -j 2 --branches=1 --functions=1 --lines=1 --statements=1 -t 2700 test/integration/*.js",
48
49
  "test": "tap --branches=1 --functions=1 --lines=1 --statements=1 -t 60 test/actions/*.js test/balanced/*.js test/capacity/*.js test/client/*.js test/config/*.js test/p2p/*.js test/records/*.js test/respond/*.js test/server/*.js test/swaps/*.js test/services/*.js test/trades/*.js"
49
50
  },
50
- "version": "5.0.4"
51
+ "version": "6.0.0"
51
52
  }
@@ -31,7 +31,10 @@
31
31
  "typeRequest": "11",
32
32
  "typeTimeout": "12",
33
33
  "typeTokens": "13",
34
- "typeInboundPeer": "14"
34
+ "typeInboundPeer": "14",
35
+ "typeRefundCoopPublicKey": "15",
36
+ "typeRefundCoopPublicKeyHash": "16",
37
+ "typeClaimCoopPublicKey": "17"
35
38
  },
36
39
  "pushTypes": {
37
40
  "typeSwapId": "0",
@@ -90,7 +90,7 @@ module.exports = ({channels, id, sockets}) => {
90
90
  }
91
91
 
92
92
  if (!!torV3) {
93
- records.push({type: torV3SocketsType, value: ipV6});
93
+ records.push({type: torV3SocketsType, value: torV3});
94
94
  }
95
95
 
96
96
  // Return the node identity key and network sockets