@crombolo/server 0.41.1 → 0.42.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crombolo/server",
3
- "version": "0.41.1",
3
+ "version": "0.42.1",
4
4
  "description": "Internal to crombolo, with no compatibility promise: use @crombolo/crombolo. The crombolo HTTP server: routing, configuration, media stores and background jobs.",
5
5
  "license": "MIT",
6
6
  "author": "Crombolo",
@@ -31,18 +31,18 @@
31
31
  "access": "public"
32
32
  },
33
33
  "dependencies": {
34
- "@crombolo/api-delivery": "0.41.1",
35
- "@crombolo/api-management": "0.41.1",
36
- "@crombolo/auth": "0.41.1",
37
- "@crombolo/backoffice-host": "0.41.1",
38
- "@crombolo/common": "0.41.1",
39
- "@crombolo/content": "0.41.1",
40
- "@crombolo/contracts": "0.41.1",
41
- "@crombolo/core": "0.41.1",
42
- "@crombolo/data": "0.41.1",
43
- "@crombolo/render": "0.41.1",
44
- "@crombolo/schema": "0.41.1",
45
- "@crombolo/transfer": "0.41.1",
34
+ "@crombolo/api-delivery": "0.42.1",
35
+ "@crombolo/api-management": "0.42.1",
36
+ "@crombolo/auth": "0.42.1",
37
+ "@crombolo/backoffice-host": "0.42.1",
38
+ "@crombolo/common": "0.42.1",
39
+ "@crombolo/content": "0.42.1",
40
+ "@crombolo/contracts": "0.42.1",
41
+ "@crombolo/core": "0.42.1",
42
+ "@crombolo/data": "0.42.1",
43
+ "@crombolo/render": "0.42.1",
44
+ "@crombolo/schema": "0.42.1",
45
+ "@crombolo/transfer": "0.42.1",
46
46
  "@logtape/logtape": "^2.3.8",
47
47
  "jose": "^6.2.12"
48
48
  }
package/src/config.ts CHANGED
@@ -982,7 +982,7 @@ export function describeDatabase(
982
982
  }
983
983
  }
984
984
 
985
- export const VERSION = '0.41.1'
985
+ export const VERSION = '0.42.1'
986
986
 
987
987
  /** A whole number of seconds from the environment; undefined when unset or not one. */
988
988
  /** A positive number from a setting, else the default. */
package/src/status.ts CHANGED
@@ -113,13 +113,13 @@ async function contentCounts(db: Db): Promise<SiteStatus['content']> {
113
113
  }
114
114
  }
115
115
 
116
- /** The vendored client's version, which is a fact about this deployment too. */
116
+ /** The Umbraco release the vendored client was built from, which is a fact about this deployment too. */
117
117
  export function backofficeVersion(): string | undefined {
118
118
  for (const base of [join(import.meta.dir, '..', '..'), process.cwd()]) {
119
- const file = join(base, 'backoffice-dist', 'package.json')
119
+ const file = join(base, 'backoffice-dist', 'dist', 'VERSION')
120
120
  if (!existsSync(file)) continue
121
121
  try {
122
- return (JSON.parse(readFileSync(file, 'utf8')) as { version?: string }).version
122
+ return readFileSync(file, 'utf8').trim().split('@').pop() || undefined
123
123
  } catch {
124
124
  return undefined
125
125
  }