diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 50366b4..00542d2 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,24 +94,15 @@ 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: ${{ !cancelled() }} 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 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 8cebdf4..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": { @@ -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", 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", 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,