Skip to content

Commit

Permalink
Fix the code example editor service to use the major version of Angul…
Browse files Browse the repository at this point in the history
…ar packages to determine SemVer range (#266)
  • Loading branch information
Blackbaud-SteveBrush authored Sep 21, 2023
1 parent 28e6a77 commit 10eb0dc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion projects/docs-tools/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 10eb0dc

Please sign in to comment.