From 0a3c169b26a2aafcc80a3babf72815ece059dbfb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Aug 2023 06:20:01 +0000 Subject: [PATCH 1/6] chore(deps-dev): bump @semantic-release/npm from 10.0.4 to 10.0.5 Bumps [@semantic-release/npm](https://github.com/semantic-release/npm) from 10.0.4 to 10.0.5. - [Release notes](https://github.com/semantic-release/npm/releases) - [Commits](https://github.com/semantic-release/npm/compare/v10.0.4...v10.0.5) --- updated-dependencies: - dependency-name: "@semantic-release/npm" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 44 ++++++++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8cebdf4..284919f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1079,14 +1079,14 @@ } }, "@semantic-release/npm": { - "version": "10.0.4", - "resolved": "https://registry.npmjs.org/@semantic-release/npm/-/npm-10.0.4.tgz", - "integrity": "sha512-6R3timIQ7VoL2QWRkc9DG8v74RQtRp7UOe/2KbNaqwJ815qOibAv65bH3RtTEhs4axEaHoZf7HDgFs5opaZ9Jw==", + "version": "10.0.5", + "resolved": "https://registry.npmjs.org/@semantic-release/npm/-/npm-10.0.5.tgz", + "integrity": "sha512-cJnQ2M5pxJRwZEkb0A/+U3TG4UNmjrrLwV2PxJKljn5OPT0yJB8GzGgWbbKACayvxrT06YdTa4Amtq/piJcOIA==", "dev": true, "requires": { "@semantic-release/error": "^4.0.0", "aggregate-error": "^4.0.1", - "execa": "^7.0.0", + "execa": "^8.0.0", "fs-extra": "^11.0.0", "lodash-es": "^4.17.21", "nerf-dart": "^1.0.0", @@ -1131,22 +1131,28 @@ "dev": true }, "execa": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-7.2.0.tgz", - "integrity": "sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==", + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", + "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", "dev": true, "requires": { "cross-spawn": "^7.0.3", - "get-stream": "^6.0.1", - "human-signals": "^4.3.0", + "get-stream": "^8.0.1", + "human-signals": "^5.0.0", "is-stream": "^3.0.0", "merge-stream": "^2.0.0", "npm-run-path": "^5.1.0", "onetime": "^6.0.0", - "signal-exit": "^3.0.7", + "signal-exit": "^4.1.0", "strip-final-newline": "^3.0.0" } }, + "get-stream": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", + "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", + "dev": true + }, "hosted-git-info": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-6.1.1.tgz", @@ -1157,9 +1163,9 @@ } }, "human-signals": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", - "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", + "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", "dev": true }, "indent-string": { @@ -1259,6 +1265,12 @@ "type-fest": "^3.8.0" } }, + "signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true + }, "strip-final-newline": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", @@ -6105,7 +6117,7 @@ } }, "string-width-cjs": { - "version": "npm:string-width-cjs@4.2.3", + "version": "npm:string-width-cjs@npm:string-width@4.2.3", "bundled": true, "requires": { "emoji-regex": "^8.0.0", @@ -6129,7 +6141,7 @@ } }, "strip-ansi-cjs": { - "version": "npm:strip-ansi-cjs@6.0.1", + "version": "npm:strip-ansi-cjs@npm:strip-ansi@6.0.1", "bundled": true, "requires": { "ansi-regex": "^5.0.1" @@ -6311,7 +6323,7 @@ } }, "wrap-ansi-cjs": { - "version": "npm:wrap-ansi-cjs@7.0.0", + "version": "npm:wrap-ansi-cjs@npm:wrap-ansi@7.0.0", "bundled": true, "requires": { "ansi-styles": "^4.0.0", From b400bde652b798bee73591edfae4806e5f629a68 Mon Sep 17 00:00:00 2001 From: Dan Hensby Date: Mon, 4 Sep 2023 20:26:12 +0100 Subject: [PATCH 2/6] ci: dont run release step on forks --- .github/workflows/nodejs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 50366b4..1f23274 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -114,7 +114,7 @@ jobs: release: name: Release concurrency: release - if: ${{ github.event_name == 'push' && github.actor != 'dependabot[bot]' }} + if: ${{ github.repository_owner == 'tediousjs' && github.event_name == 'push' && github.actor != 'dependabot[bot]' }} runs-on: ubuntu-latest needs: - commitlint From 3e47db566467c37e3cd88836c45f458fd59efb91 Mon Sep 17 00:00:00 2001 From: Dan Hensby Date: Mon, 4 Sep 2023 20:27:04 +0100 Subject: [PATCH 3/6] ci: use step summary for code coverage report --- .github/workflows/nodejs.yml | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 1f23274..a353345 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -81,9 +81,6 @@ jobs: needs: - commitlint - codelint - permissions: - contents: read - pull-requests: write # to be able to comment on released pull requests steps: - uses: actions/checkout@v3 with: @@ -97,20 +94,11 @@ jobs: run: npm ci - name: Test code run: npm run test:coverage --silent -- npm run test:workflow - - name: Code Coverage Summary - uses: irongut/CodeCoverageSummary@v1.3.0 - with: - filename: coverage/cobertura-coverage.xml - badge: true - format: markdown - output: both - - name: Add Coverage PR Comment - uses: marocchino/sticky-pull-request-comment@v2 - if: github.event_name == 'pull_request' - continue-on-error: true - with: - recreate: true - path: code-coverage-results.md + - name: Report coverage + run: | + echo "# Code coverage" >> $GITHUB_STEP_SUMMARY + npx nyc report | sed --expression='1d;$d' >> $GITHUB_STEP_SUMMARY + if: always() release: name: Release concurrency: release From 31fc79b9dbbfff0704f364a4cecdd6198370b758 Mon Sep 17 00:00:00 2001 From: Dan Hensby Date: Thu, 14 Sep 2023 23:25:05 +0100 Subject: [PATCH 4/6] ci: use !cancelled() instead of always() --- .github/workflows/nodejs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index a353345..00542d2 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -98,7 +98,7 @@ jobs: run: | echo "# Code coverage" >> $GITHUB_STEP_SUMMARY npx nyc report | sed --expression='1d;$d' >> $GITHUB_STEP_SUMMARY - if: always() + if: ${{ !cancelled() }} release: name: Release concurrency: release From cae1d2054c622dbd5e707e54bbaccccccd171f01 Mon Sep 17 00:00:00 2001 From: Paul Stoker Date: Wed, 11 Sep 2024 10:51:52 +0200 Subject: [PATCH 5/6] feat: add more authentication options SQL Server now has 8 options for `Authentication` as per https://learn.microsoft.com/en-us/sql/connect/ado-net/sql/azure-active-directory-authentication?view=sql-server-ver15#setting-microsoft-entra-authentication --- src/parser/sql-connection-string.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/parser/sql-connection-string.ts b/src/parser/sql-connection-string.ts index a749901..6f0227a 100644 --- a/src/parser/sql-connection-string.ts +++ b/src/parser/sql-connection-string.ts @@ -48,7 +48,16 @@ export const SCHEMA: SchemaDefinition = { }, 'Authentication': { type: SchemaTypes.STRING, - allowedValues: ['Active Directory Integrated', 'Active Directory Password', 'Sql Password'], + allowedValues: [ + 'Active Directory Default', + 'Active Directory Device Code Flow', + 'Active Directory Integrated', + 'Active Directory Interactive', + 'Active Directory Managed Identity', + 'Active Directory Password', + 'Active Directory Service Principal', + 'SQL Password', + ], }, 'Column Encryption Setting': { type: SchemaTypes.STRING, From 9a808b3dd6157a0acb3e2f597e1d87d708a36e93 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 11 Sep 2024 09:08:19 +0000 Subject: [PATCH 6/6] chore(release): 0.6.0 ## [0.6.0](https://github.com/tediousjs/connection-string/compare/v0.5.0...v0.6.0) (2024-09-11) ### Features * add more authentication options ([cae1d20](https://github.com/tediousjs/connection-string/commit/cae1d2054c622dbd5e707e54bbaccccccd171f01)) --- CHANGELOG.md | 7 +++++++ package-lock.json | 2 +- package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b5a114..f57dcd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.6.0](https://github.com/tediousjs/connection-string/compare/v0.5.0...v0.6.0) (2024-09-11) + + +### Features + +* add more authentication options ([cae1d20](https://github.com/tediousjs/connection-string/commit/cae1d2054c622dbd5e707e54bbaccccccd171f01)) + ## [0.5.0](https://github.com/tediousjs/connection-string/compare/v0.4.4...v0.5.0) (2023-08-09) diff --git a/package-lock.json b/package-lock.json index 284919f..19cfe9c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@tediousjs/connection-string", - "version": "0.5.0", + "version": "0.6.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index d175cff..53ed563 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tediousjs/connection-string", - "version": "0.5.0", + "version": "0.6.0", "description": "SQL ConnectionString parser", "repository": { "type": "git",