@skyux/docs-tools 4.9.6 → 4.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 4.9.7 (2021-12-03)
2
+
3
+ - Fixed the `SkyDocsCodeExamplesEditorService` to set wildcard versions (e.g. '*') of SKY UX packages to `^4`. [#188](https://github.com/blackbaud/skyux-docs-tools/pull/188)
4
+
1
5
  # 4.9.6 (2021-09-21)
2
6
 
3
7
  - Fixed the `SkyDocsSourceCodeService` to handle both encoded and decoded URI strings for the source code. [#173](https://github.com/blackbaud/skyux-docs-tools/pull/173)
@@ -474,7 +474,7 @@
474
474
  };
475
475
  SkyDocsCodeExamplesEditorService.prototype.getPayload = function (codeExample) {
476
476
  var angularVersion = '^9.0.0';
477
- var skyuxVersion = '*';
477
+ var skyuxVersion = '^4';
478
478
  var defaultDependencies = {
479
479
  '@angular/animations': angularVersion,
480
480
  '@angular/common': angularVersion,
@@ -505,6 +505,16 @@
505
505
  'zone.js': '~0.11.4'
506
506
  };
507
507
  var mergedDependencies = Object.assign({}, defaultDependencies, codeExample.packageDependencies);
508
+ // Ensure any @skyux dependencies list the correct version of SKY UX.
509
+ // e.g. `"@skyux/core": "*"` --> `"@skyux/core": "4.0.0"`
510
+ for (var packageName in mergedDependencies) {
511
+ if (mergedDependencies.hasOwnProperty(packageName)) {
512
+ var version = mergedDependencies[packageName];
513
+ if (version === '*' && /^(@blackbaud\/skyux-lib-|@skyux)/.test(packageName)) {
514
+ mergedDependencies[packageName] = skyuxVersion;
515
+ }
516
+ }
517
+ }
508
518
  var files = this.parseStackBlitzFiles(codeExample.sourceCode, mergedDependencies, codeExample.theme);
509
519
  return {
510
520
  files: files,