From b47f91baa8c570b323702a9e21a77b3f7f31dead Mon Sep 17 00:00:00 2001 From: Peter van Gulik Date: Wed, 25 Jan 2023 15:45:50 +0100 Subject: [PATCH] chore: publish version 0.18.8 --- CHANGELOG.md | 11 +++++++++++ lerna.json | 2 +- packages/cli/CHANGELOG.md | 4 ++++ packages/cli/package.json | 10 +++++----- packages/core/CHANGELOG.md | 4 ++++ packages/core/package.json | 4 ++-- packages/salesforce/CHANGELOG.md | 10 ++++++++++ packages/salesforce/package.json | 6 +++--- packages/util/CHANGELOG.md | 7 +++++++ packages/util/package.json | 2 +- packages/util/src/errors.ts | 13 +++++++++++++ packages/vlocity-deploy/CHANGELOG.md | 4 ++++ packages/vlocity-deploy/package.json | 8 ++++---- packages/vscode-extension/CHANGELOG.md | 6 ++++++ packages/vscode-extension/package.json | 2 +- pnpm-lock.yaml | 20 ++++++++++---------- 16 files changed, 86 insertions(+), 27 deletions(-) create mode 100644 packages/util/src/errors.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index d4b7e9eb..d4d7378e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.18.8](https://github.com/codeneos/vlocode/compare/v0.18.7...v0.18.8) (2023-01-25) + +### Bug Fixes + +* the refreshFn cannot be set when refresh delegates is undefined ([9d5222a](https://github.com/codeneos/vlocode/commit/9d5222a91ecb1caa910d261fec7a3a2b60542512)) + +### Features + +* improve custom transport so it can be used with OAuth flow and stores refreshed tokens in SFDX to avoid refreshing tokens every time vlocode connects to a SFDX org with an outdated access token ([7bd75e5](https://github.com/codeneos/vlocode/commit/7bd75e582f5cf196b1d32272ab5c1d3bba81d283)) +* support refreshing OAuth tokens and prefilling the username on the refresh tokens action ([b31a419](https://github.com/codeneos/vlocode/commit/b31a4198044a4dd701adbe0aacdb15c157af75f8)) + ## [0.18.7](https://github.com/codeneos/vlocode/compare/v0.18.6...v0.18.7) (2023-01-24) ### Bug Fixes diff --git a/lerna.json b/lerna.json index 42a13136..7bc21a5b 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "useNx": false, - "version": "0.18.7", + "version": "0.18.8", "npmClient": "pnpm", "packages": ["packages/*"], "command": { diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index d674d269..7611fc17 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.18.8](https://github.com/Codeneos/vlocode/compare/v0.18.7...v0.18.8) (2023-01-25) + +**Note:** Version bump only for package @vlocode/cli + ## [0.18.7](https://github.com/Codeneos/vlocode/compare/v0.18.6...v0.18.7) (2023-01-24) **Note:** Version bump only for package @vlocode/cli diff --git a/packages/cli/package.json b/packages/cli/package.json index 6cbd7b90..d7d21c5c 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@vlocode/cli", - "version": "0.18.7", + "version": "0.18.8", "description": "Hyper fast Salesforce/Vlocity datapack deployment CLI", "keywords": [ "Vlocity", @@ -56,10 +56,10 @@ "@types/fs-extra": "^9", "@types/jest": "^28.1.6", "@types/node": "^16", - "@vlocode/core": "^0.18.7", - "@vlocode/salesforce": "^0.18.7", - "@vlocode/util": "^0.18.7", - "@vlocode/vlocity-deploy": "^0.18.7", + "@vlocode/core": "^0.18.8", + "@vlocode/salesforce": "^0.18.8", + "@vlocode/util": "^0.18.8", + "@vlocode/vlocity-deploy": "^0.18.8", "chalk": "^4.1.1", "commander": "^9.2.0", "create-ts-index": "^1.14.0", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index eca306fb..954ac162 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.18.8](https://github.com/Codeneos/vlocode/compare/v0.18.7...v0.18.8) (2023-01-25) + +**Note:** Version bump only for package @vlocode/core + ## [0.18.7](https://github.com/Codeneos/vlocode/compare/v0.18.6...v0.18.7) (2023-01-24) ### Bug Fixes diff --git a/packages/core/package.json b/packages/core/package.json index e9729307..afd83e59 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@vlocode/core", - "version": "0.18.7", + "version": "0.18.8", "description": "Vlocode core IoC container framework library", "main": "lib/index.js", "readme": "../SITE.md", @@ -50,7 +50,7 @@ "typescript": "4.6.4" }, "dependencies": { - "@vlocode/util": "^0.18.7", + "@vlocode/util": "^0.18.8", "chalk": "^4.1.1", "globby": "^11.0.4", "luxon": "^3.1.0", diff --git a/packages/salesforce/CHANGELOG.md b/packages/salesforce/CHANGELOG.md index 40758e1f..8238bad9 100644 --- a/packages/salesforce/CHANGELOG.md +++ b/packages/salesforce/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.18.8](https://github.com/Codeneos/vlocode/compare/v0.18.7...v0.18.8) (2023-01-25) + +### Bug Fixes + +* the refreshFn cannot be set when refresh delegates is undefined ([9d5222a](https://github.com/Codeneos/vlocode/commit/9d5222a91ecb1caa910d261fec7a3a2b60542512)) + +### Features + +* improve custom transport so it can be used with OAuth flow and stores refreshed tokens in SFDX to avoid refreshing tokens every time vlocode connects to a SFDX org with an outdated access token ([7bd75e5](https://github.com/Codeneos/vlocode/commit/7bd75e582f5cf196b1d32272ab5c1d3bba81d283)) + ## [0.18.7](https://github.com/Codeneos/vlocode/compare/v0.18.6...v0.18.7) (2023-01-24) ### Bug Fixes diff --git a/packages/salesforce/package.json b/packages/salesforce/package.json index 6710b6c9..b8a65733 100644 --- a/packages/salesforce/package.json +++ b/packages/salesforce/package.json @@ -1,6 +1,6 @@ { "name": "@vlocode/salesforce", - "version": "0.18.7", + "version": "0.18.8", "description": "Salesforce utility library for Vlocode", "keywords": [ "Salesforce" @@ -59,8 +59,8 @@ }, "dependencies": { "@salesforce/source-deploy-retrieve": "^5", - "@vlocode/core": "^0.18.7", - "@vlocode/util": "^0.18.7", + "@vlocode/core": "^0.18.8", + "@vlocode/util": "^0.18.8", "axios": "^0.25.0", "chalk": "^4.1.1", "csv-parse": "^5.3.3", diff --git a/packages/util/CHANGELOG.md b/packages/util/CHANGELOG.md index 83ebaaf4..6e1a3014 100644 --- a/packages/util/CHANGELOG.md +++ b/packages/util/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.18.8](https://github.com/Codeneos/vlocode/compare/v0.18.7...v0.18.8) (2023-01-25) + +### Features + +* improve custom transport so it can be used with OAuth flow and stores refreshed tokens in SFDX to avoid refreshing tokens every time vlocode connects to a SFDX org with an outdated access token ([7bd75e5](https://github.com/Codeneos/vlocode/commit/7bd75e582f5cf196b1d32272ab5c1d3bba81d283)) +* support refreshing OAuth tokens and prefilling the username on the refresh tokens action ([b31a419](https://github.com/Codeneos/vlocode/commit/b31a4198044a4dd701adbe0aacdb15c157af75f8)) + ## [0.18.7](https://github.com/Codeneos/vlocode/compare/v0.18.6...v0.18.7) (2023-01-24) ### Bug Fixes diff --git a/packages/util/package.json b/packages/util/package.json index 50f7f511..85810953 100644 --- a/packages/util/package.json +++ b/packages/util/package.json @@ -1,6 +1,6 @@ { "name": "@vlocode/util", - "version": "0.18.7", + "version": "0.18.8", "description": "Vlocode utility library", "main": "lib/index.js", "readme": "../SITE.md", diff --git a/packages/util/src/errors.ts b/packages/util/src/errors.ts new file mode 100644 index 00000000..34040c54 --- /dev/null +++ b/packages/util/src/errors.ts @@ -0,0 +1,13 @@ +/** + * Custom error object that extends the default Error but has a more versatile constructor that allows setting additional + * standard error fields such as name while also allowing setting of custom fields through the constructor making it easier to include + * extra detail into the error + */ +export class CustomError extends Error { + constructor(message: string, options?: ({ name?: string, code?: string } & object) | Error) { + super(message); + if (options) { + Object.assign(this, options); + } + } +} \ No newline at end of file diff --git a/packages/vlocity-deploy/CHANGELOG.md b/packages/vlocity-deploy/CHANGELOG.md index db91236b..0efd1fdc 100644 --- a/packages/vlocity-deploy/CHANGELOG.md +++ b/packages/vlocity-deploy/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.18.8](https://github.com/Codeneos/vlocode/compare/v0.18.7...v0.18.8) (2023-01-25) + +**Note:** Version bump only for package @vlocode/vlocity-deploy + ## [0.18.7](https://github.com/Codeneos/vlocode/compare/v0.18.6...v0.18.7) (2023-01-24) ### Bug Fixes diff --git a/packages/vlocity-deploy/package.json b/packages/vlocity-deploy/package.json index 25bf1b76..1b3672a2 100644 --- a/packages/vlocity-deploy/package.json +++ b/packages/vlocity-deploy/package.json @@ -1,6 +1,6 @@ { "name": "@vlocode/vlocity-deploy", - "version": "0.18.7", + "version": "0.18.8", "description": "Hyper fast Salesforce/Vlocity datapack deployment library", "keywords": [ "Vlocity", @@ -62,9 +62,9 @@ "webpack-env": "^0.8.0" }, "dependencies": { - "@vlocode/core": "^0.18.7", - "@vlocode/salesforce": "^0.18.7", - "@vlocode/util": "^0.18.7", + "@vlocode/core": "^0.18.8", + "@vlocode/salesforce": "^0.18.8", + "@vlocode/util": "^0.18.8", "chalk": "^4.1.1", "commander": "^9.2.0", "fs-extra": "^9.0", diff --git a/packages/vscode-extension/CHANGELOG.md b/packages/vscode-extension/CHANGELOG.md index 1e7d0866..9c6d8b72 100644 --- a/packages/vscode-extension/CHANGELOG.md +++ b/packages/vscode-extension/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.18.8](https://github.com/codeneos/vlocode/compare/v0.18.7...v0.18.8) (2023-01-25) + +### Features + +* support refreshing OAuth tokens and prefilling the username on the refresh tokens action ([b31a419](https://github.com/codeneos/vlocode/commit/b31a4198044a4dd701adbe0aacdb15c157af75f8)) + ## [0.18.7](https://github.com/codeneos/vlocode/compare/v0.18.6...v0.18.7) (2023-01-24) ### Bug Fixes diff --git a/packages/vscode-extension/package.json b/packages/vscode-extension/package.json index b21badd8..93ede69c 100644 --- a/packages/vscode-extension/package.json +++ b/packages/vscode-extension/package.json @@ -3,7 +3,7 @@ "private": true, "displayName": "Salesforce Vlocity Integration", "description": "Salesforce and Vlocity development and deployment extension for VSCode", - "version": "0.18.7", + "version": "0.18.8", "license": "MIT", "icon": "resources/icon.png", "author": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 82288fe9..7ee12250 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -103,10 +103,10 @@ importers: '@types/fs-extra': ^9 '@types/jest': ^28.1.6 '@types/node': ^16 - '@vlocode/core': ^0.18.7 - '@vlocode/salesforce': ^0.18.7 - '@vlocode/util': ^0.18.7 - '@vlocode/vlocity-deploy': ^0.18.7 + '@vlocode/core': ^0.18.8 + '@vlocode/salesforce': ^0.18.8 + '@vlocode/util': ^0.18.8 + '@vlocode/vlocity-deploy': ^0.18.8 chalk: ^4.1.2 commander: ^9.2.0 create-ts-index: ^1.14.0 @@ -168,7 +168,7 @@ importers: '@types/jest': ^28.1.6 '@types/luxon': ^3.1.0 '@types/node': ^16 - '@vlocode/util': ^0.18.7 + '@vlocode/util': ^0.18.8 chalk: ^4.1.2 create-ts-index: ^1.14.0 globby: ^11.0.4 @@ -211,8 +211,8 @@ importers: '@types/luxon': ^3.1.0 '@types/node': ^16 '@types/tough-cookie': ^4.0.2 - '@vlocode/core': ^0.18.7 - '@vlocode/util': ^0.18.7 + '@vlocode/core': ^0.18.8 + '@vlocode/util': ^0.18.8 axios: ^0.25.0 chalk: ^4.1.2 create-ts-index: ^1.14.0 @@ -315,9 +315,9 @@ importers: '@types/jest': ^28.1.6 '@types/luxon': ^3.1.0 '@types/node': ^16 - '@vlocode/core': ^0.18.7 - '@vlocode/salesforce': ^0.18.7 - '@vlocode/util': ^0.18.7 + '@vlocode/core': ^0.18.8 + '@vlocode/salesforce': ^0.18.8 + '@vlocode/util': ^0.18.8 chalk: ^4.1.2 commander: ^9.2.0 create-ts-index: ^1.14.0