@byline/core 2.2.0 → 2.2.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.
@@ -199,7 +199,7 @@ export async function createDocument(ctx, params) {
199
199
  action: 'create',
200
200
  documentData: data,
201
201
  path: resolvedPath,
202
- status: params.status ?? data.status,
202
+ status: params.status ?? data.status ?? getDefaultStatus(definition),
203
203
  locale: params.locale ?? defaultLocale,
204
204
  orderKey,
205
205
  })
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@byline/core",
3
3
  "private": false,
4
4
  "license": "MPL-2.0",
5
- "version": "2.2.0",
5
+ "version": "2.2.1",
6
6
  "engines": {
7
7
  "node": ">=20.9.0"
8
8
  },
@@ -79,7 +79,7 @@
79
79
  "sharp": "^0.34.5",
80
80
  "uuid": "^14.0.0",
81
81
  "zod": "^4.4.3",
82
- "@byline/auth": "2.2.0"
82
+ "@byline/auth": "2.2.1"
83
83
  },
84
84
  "devDependencies": {
85
85
  "@biomejs/biome": "2.4.15",