@loomweaver/shell 0.7.9 → 0.8.0-preview.1
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.
|
@@ -11606,7 +11606,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
11606
11606
|
// GENERATED — do not edit by hand.
|
|
11607
11607
|
// Written by tools/stamp-version.mjs from <Version> in Directory.Build.props.
|
|
11608
11608
|
// Single source of truth: Directory.Build.props (bump via scripts/bump-version.sh).
|
|
11609
|
-
const APP_VERSION = '0.
|
|
11609
|
+
const APP_VERSION = '0.8.0-preview.1';
|
|
11610
|
+
|
|
11611
|
+
const PRERELEASE_IDENTIFIER = /^[0-9A-Za-z-]+$/;
|
|
11612
|
+
function isPreviewVersion(version) {
|
|
11613
|
+
const withoutBuildMetadata = version.split('+', 1)[0];
|
|
11614
|
+
const marker = withoutBuildMetadata.indexOf('-');
|
|
11615
|
+
if (marker === -1) {
|
|
11616
|
+
return false;
|
|
11617
|
+
}
|
|
11618
|
+
return withoutBuildMetadata
|
|
11619
|
+
.slice(marker + 1)
|
|
11620
|
+
.split('.')
|
|
11621
|
+
.every((identifier) => PRERELEASE_IDENTIFIER.test(identifier));
|
|
11622
|
+
}
|
|
11610
11623
|
|
|
11611
11624
|
/**
|
|
11612
11625
|
* The running build's version, sourced from `<Version>` in Directory.Build.props
|
|
@@ -11620,6 +11633,16 @@ class VersionService {
|
|
|
11620
11633
|
/** SemVer of the running build, e.g. `0.1.0`. */
|
|
11621
11634
|
version = signal(APP_VERSION, /* @ts-ignore */
|
|
11622
11635
|
...(ngDevMode ? [{ debugName: "version" }] : /* istanbul ignore next */ []));
|
|
11636
|
+
/**
|
|
11637
|
+
* Whether {@link version} is a preview of a line that has not been released — `0.8.0-preview.3`
|
|
11638
|
+
* rather than `0.7.9`. Ask this instead of taking the version apart yourself.
|
|
11639
|
+
*
|
|
11640
|
+
* **Announcing it is yours.** The workbench marks a preview nowhere on its own: how loudly a
|
|
11641
|
+
* product tells its users that it is running something unfinished is the product's judgement.
|
|
11642
|
+
* A distribution that wants it visible draws it, from this.
|
|
11643
|
+
*/
|
|
11644
|
+
isPreview = computed(() => isPreviewVersion(this.version()), /* @ts-ignore */
|
|
11645
|
+
...(ngDevMode ? [{ debugName: "isPreview" }] : /* istanbul ignore next */ []));
|
|
11623
11646
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: VersionService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
11624
11647
|
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.0", ngImport: i0, type: VersionService });
|
|
11625
11648
|
}
|
|
@@ -13413,6 +13436,7 @@ class CompositionReport {
|
|
|
13413
13436
|
barItems = inject(BAR_ITEM, { optional: true }) ?? [];
|
|
13414
13437
|
railItems = inject(RAIL_ITEM, { optional: true }) ?? [];
|
|
13415
13438
|
views = inject(VIEW, { optional: true }) ?? [];
|
|
13439
|
+
versions = inject(VersionService);
|
|
13416
13440
|
checkStaticContributions() {
|
|
13417
13441
|
for (const problem of this.staticProblems()) {
|
|
13418
13442
|
console.warn(problem);
|
|
@@ -13420,6 +13444,7 @@ class CompositionReport {
|
|
|
13420
13444
|
}
|
|
13421
13445
|
print() {
|
|
13422
13446
|
const lines = [
|
|
13447
|
+
`Version: ${this.versions.version()}${this.versions.isPreview() ? ' (preview)' : ''}`,
|
|
13423
13448
|
`Layout: ${this.layout.regions
|
|
13424
13449
|
.map((region) => `${region.id} (${region.type}/${region.dock})`)
|
|
13425
13450
|
.join(', ')}`,
|
|
@@ -15859,6 +15884,7 @@ class HostPluginContext {
|
|
|
15859
15884
|
};
|
|
15860
15885
|
this.hostFacts = {
|
|
15861
15886
|
version: version.version,
|
|
15887
|
+
isPreview: version.isPreview,
|
|
15862
15888
|
updateAvailable: update.updateAvailable,
|
|
15863
15889
|
updatesEnabled: update.enabled,
|
|
15864
15890
|
checkForUpdate: () => update.checkForUpdate(),
|