diff --git a/CHANGELOG.md b/CHANGELOG.md index 5533177..50b14e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 9.1.3 (2023-09-21) + +- Fixed the code example editor service to use the major version of Angular packages to determine SemVer range. [#266](https://github.com/blackbaud/skyux-docs-tools/pull/266) + ## 9.1.2 (2023-09-21) - Fixed the code example editor service to use the latest supported version of `@skyux/icons`, `@skyux/core`, and `@angular/core`. [#264](https://github.com/blackbaud/skyux-docs-tools/pull/264) diff --git a/projects/docs-tools/package.json b/projects/docs-tools/package.json index 1448d8b..c6e1b71 100644 --- a/projects/docs-tools/package.json +++ b/projects/docs-tools/package.json @@ -1,6 +1,6 @@ { "name": "@skyux/docs-tools", - "version": "9.1.2", + "version": "9.1.3", "peerDependencies": { "@angular/common": "^16.2.5", "@angular/core": "^16.2.5", diff --git a/projects/docs-tools/src/modules/code-examples/code-examples-editor.service.spec.ts b/projects/docs-tools/src/modules/code-examples/code-examples-editor.service.spec.ts index 831ec55..c482a22 100644 --- a/projects/docs-tools/src/modules/code-examples/code-examples-editor.service.spec.ts +++ b/projects/docs-tools/src/modules/code-examples/code-examples-editor.service.spec.ts @@ -332,7 +332,7 @@ describe('Code examples editor service', () => { service.launchEditor(codeExample); - const angularVersion = `^${ANGULAR_VERSION.full}`; + const angularVersion = `^${ANGULAR_VERSION.major}`; const skyuxVersion = `^${SKY_UX_VERSION.full}`; expect(stackblitzSpy.calls.mostRecent().args[0].dependencies).toEqual({ diff --git a/projects/docs-tools/src/modules/code-examples/code-examples-editor.service.ts b/projects/docs-tools/src/modules/code-examples/code-examples-editor.service.ts index 74ba743..fd575aa 100644 --- a/projects/docs-tools/src/modules/code-examples/code-examples-editor.service.ts +++ b/projects/docs-tools/src/modules/code-examples/code-examples-editor.service.ts @@ -28,7 +28,7 @@ export class SkyDocsCodeExamplesEditorService { } #getPayload(codeExample: SkyDocsCodeExample): StackBlitzProject { - const angularVersion = `^${ANGULAR_VERSION.full}`; + const angularVersion = `^${ANGULAR_VERSION.major}`; const skyuxVersion = `^${SKY_UX_VERSION.full}`; const defaultDependencies: SkyDocsCodeExampleModuleDependencies = {