@tryghost/mg-context 0.11.7 → 0.11.9

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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -685,7 +685,7 @@ await dupe.save(ctx.db); // skipped
685
685
 
686
686
  ### Field sanitization
687
687
 
688
- Source data routinely carries values Ghost will not accept — a title over 255 characters, a tag name over 191, an email that is not an address. Rather than failing the migration, each context normalizes its own data against [Ghost's schema](https://github.com/TryGhost/Ghost/blob/main/ghost/core/core/server/data/schema/schema.js) before anything is written.
688
+ Source data routinely carries values Ghost will not accept — a title over 255 characters, a tag name over 191, an email that is not an address. Rather than failing the migration, each context normalizes its own data against [Ghost's schema](https://github.com/TryGhost/Ghost/blob/main/ghost/core/server/data/schema/schema.js) before anything is written.
689
689
 
690
690
  Enforcement lives in one place per context: `save()` calls `sanitize()`, which applies every rule and records what changed. That covers values set with `set()` as well as values handed to a constructor or loaded from a row, which bypass `set()` entirely.
691
691
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/mg-context",
3
- "version": "0.11.7",
3
+ "version": "0.11.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/TryGhost/migrate.git",
@@ -24,17 +24,17 @@
24
24
  "access": "public"
25
25
  },
26
26
  "devDependencies": {
27
- "@types/node": "24.13.2"
27
+ "@types/node": "24.19.1"
28
28
  },
29
29
  "dependencies": {
30
- "@tryghost/errors": "3.3.6",
31
- "@tryghost/string": "0.3.5",
32
- "@tryghost/validator": "3.2.6",
30
+ "@tryghost/errors": "3.4.2",
31
+ "@tryghost/listr-smart-renderer": "0.15.7",
32
+ "@tryghost/mg-html-lexical": "0.10.7",
33
+ "@tryghost/string": "0.3.7",
34
+ "@tryghost/validator": "3.2.17",
33
35
  "c8": "12.0.0",
34
36
  "typescript": "6.0.3",
35
- "zod": "4.4.3",
36
- "@tryghost/listr-smart-renderer": "0.15.5",
37
- "@tryghost/mg-html-lexical": "0.10.5"
37
+ "zod": "4.6.5"
38
38
  },
39
39
  "scripts": {
40
40
  "dev": "echo \"Implement me!\"",