Skip to content

Commit

Permalink
build: release v4.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pozil committed Jul 31, 2024
1 parent c76370f commit 2586140
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 15 deletions.
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run precommit
5 changes: 5 additions & 0 deletions dist/client.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,11 @@ var PubSubApiClient = class {
* @memberof PubSubApiClient.prototype
*/
close() {
this.#logger.info("Clear subscriptions");
this.#subscriptions.forEach((subscription) => {
subscription.removeAllListeners();
});
this.#subscriptions.clear();
this.#logger.info("Closing gRPC stream");
this.#client.close();
}
Expand Down
2 changes: 1 addition & 1 deletion dist/client.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions dist/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,11 @@ var PubSubApiClient = class {
* @memberof PubSubApiClient.prototype
*/
close() {
this.#logger.info("Clear subscriptions");
this.#subscriptions.forEach((subscription) => {
subscription.removeAllListeners();
});
this.#subscriptions.clear();
this.#logger.info("Closing gRPC stream");
this.#client.close();
}
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "salesforce-pubsub-api-client",
"version": "4.1.0",
"version": "4.1.1",
"type": "module",
"description": "A node client for the Salesforce Pub/Sub API",
"author": "pozil",
Expand All @@ -17,27 +17,27 @@
"build": "tsup && tsc",
"prettier": "prettier --write '**/*.{css,html,js,json,md,yaml,yml}'",
"lint": "eslint src",
"prepare": "husky install",
"prepare": "husky || true",
"precommit": "lint-staged",
"prepublishOnly": "npm run build"
},
"dependencies": {
"@grpc/grpc-js": "^1.10.8",
"@grpc/grpc-js": "^1.11.1",
"@grpc/proto-loader": "^0.7.13",
"avro-js": "^1.11.3",
"certifi": "^14.5.15",
"dotenv": "^16.4.5",
"jsforce": "^1.11.1",
"undici": "^6.19.2"
"jsforce": "^3.3.4",
"undici": "^6.19.5"
},
"devDependencies": {
"@chialab/esbuild-plugin-meta-url": "^0.18.2",
"eslint": "^9.6.0",
"husky": "^9.0.11",
"eslint": "^9.8.0",
"husky": "^9.1.4",
"lint-staged": "^15.2.7",
"prettier": "^3.3.2",
"tsup": "^8.1.0",
"typescript": "^5.5.3"
"prettier": "^3.3.3",
"tsup": "^8.2.3",
"typescript": "^5.5.4"
},
"lint-staged": {
"**/src/*.{css,html,js,json,md,yaml,yml}": [
Expand Down

0 comments on commit 2586140

Please sign in to comment.