Skip to content

Commit ef74fe8

Browse files
committed
build: node@20 and bump dependencies
1 parent d1b7544 commit ef74fe8

File tree

7 files changed

+31
-30
lines changed

7 files changed

+31
-30
lines changed

.eslintrc.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

dist/client.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ var PubSubApiClient = class {
750750
* @returns {Promise<EventEmitter>} Promise that holds an emitter that allows you to listen to received events and stream lifecycle events
751751
* @memberof PubSubApiClient.prototype
752752
*/
753-
async subscribeFromReplayId(topicName, replayId, numRequested = null) {
753+
async subscribeFromReplayId(topicName, numRequested, replayId) {
754754
return this.#subscribe({
755755
topicName,
756756
numRequested,

dist/client.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default class PubSubApiClient {
4040
* @returns {Promise<EventEmitter>} Promise that holds an emitter that allows you to listen to received events and stream lifecycle events
4141
* @memberof PubSubApiClient.prototype
4242
*/
43-
subscribeFromReplayId(topicName: string, numRequested?: number | null, replayId: number): Promise<EventEmitter>;
43+
subscribeFromReplayId(topicName: string, numRequested?: number | null, replayId: number): Promise<EventEmitter>;
4444
/**
4545
* Subscribes to a topic.
4646
* @param {string} topicName name of the topic that we're subscribing to

dist/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ var PubSubApiClient = class {
717717
* @returns {Promise<EventEmitter>} Promise that holds an emitter that allows you to listen to received events and stream lifecycle events
718718
* @memberof PubSubApiClient.prototype
719719
*/
720-
async subscribeFromReplayId(topicName, replayId, numRequested = null) {
720+
async subscribeFromReplayId(topicName, numRequested, replayId) {
721721
return this.#subscribe({
722722
topicName,
723723
numRequested,

eslint.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import js from '@eslint/js';
2+
import globals from 'globals';
3+
4+
export default [
5+
js.configs.recommended,
6+
{
7+
languageOptions: {
8+
ecmaVersion: 13,
9+
globals: {
10+
...globals.node
11+
}
12+
}
13+
}
14+
];

package.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "salesforce-pubsub-api-client",
3-
"version": "3.4.1",
3+
"version": "4.0.0",
44
"type": "module",
55
"description": "A node client for the Salesforce Pub/Sub API",
66
"author": "pozil",
@@ -22,22 +22,22 @@
2222
"prepublishOnly": "npm run build"
2323
},
2424
"dependencies": {
25-
"@grpc/grpc-js": "^1.10.3",
26-
"@grpc/proto-loader": "^0.7.10",
25+
"@grpc/grpc-js": "^1.10.8",
26+
"@grpc/proto-loader": "^0.7.13",
2727
"avro-js": "^1.11.3",
2828
"certifi": "^14.5.15",
2929
"dotenv": "^16.4.5",
3030
"jsforce": "^1.11.1",
31-
"undici": "^6.10.1"
31+
"undici": "^6.18.2"
3232
},
3333
"devDependencies": {
3434
"@chialab/esbuild-plugin-meta-url": "^0.18.2",
35-
"eslint": "^8.57.0",
35+
"eslint": "^9.4.0",
3636
"husky": "^9.0.11",
37-
"lint-staged": "^15.2.2",
38-
"prettier": "^3.2.5",
39-
"tsup": "^8.0.2",
40-
"typescript": "^5.4.3"
37+
"lint-staged": "^15.2.5",
38+
"prettier": "^3.3.0",
39+
"tsup": "^8.1.0",
40+
"typescript": "^5.4.5"
4141
},
4242
"lint-staged": {
4343
"**/src/*.{css,html,js,json,md,yaml,yml}": [
@@ -51,10 +51,6 @@
5151
"type": "git",
5252
"url": "git+https://github.com/pozil/pub-sub-api-node-client"
5353
},
54-
"volta": {
55-
"node": "18.12.1",
56-
"npm": "8.19.2"
57-
},
5854
"keywords": [
5955
"salesforce",
6056
"pubsub",
@@ -64,5 +60,8 @@
6460
"files": [
6561
"dist/*",
6662
"pubsub_api.proto"
67-
]
63+
],
64+
"volta": {
65+
"node": "20.14.0"
66+
}
6867
}

src/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ export default class PubSubApiClient {
352352
let replayId;
353353
try {
354354
replayId = decodeReplayId(event.replayId);
355-
// eslint-disable-next-line no-empty
355+
// eslint-disable-next-line no-empty, no-unused-vars
356356
} catch (error) {}
357357
const message = replayId
358358
? `Failed to parse event with replay ID ${replayId}`

0 commit comments

Comments
 (0)