@ingram-tech/nk-blog 0.1.8 → 0.1.10

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 +11 -11
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # @ingram-tech/nk-blog
2
2
 
3
- File-based blogs for Next.js sites: one frontmatter contract, a build-time
4
- reader, `.md`/limited-`.mdx` rendering, a typed component vocabulary with
5
- unstyled defaults, GitHub read/publish for automated publishers, and RSS.
3
+ File-based blogs for Next.js: one frontmatter contract, a build-time reader,
4
+ `.md`/limited-`.mdx` rendering, a typed component vocabulary with unstyled
5
+ defaults, GitHub read/publish for automated publishers, and RSS.
6
6
 
7
- **The files are the index.** Posts are `content/blog/<slug>.md` (or `.mdx`,
8
- or `<slug>/index.mdx` folders) with YAML frontmatter. There is no generated
9
- `posts.json`, no metadata-extraction script, and nothing to drift.
7
+ The files are the index. Posts are `content/blog/<slug>.md` (or `.mdx`, or
8
+ `<slug>/index.mdx` folders) with YAML frontmatter. There is no generated
9
+ `posts.json` and no metadata-extraction script.
10
10
 
11
11
  ## Entry points
12
12
 
@@ -31,7 +31,7 @@ export const blog = createBlog({
31
31
  ```
32
32
 
33
33
  ```tsx
34
- // src/lib/blog-components.tsx — the site's entire vocabulary obligation
34
+ // src/lib/blog-components.tsx — the site's component vocabulary
35
35
  import { defineBlogComponents } from "@ingram-tech/nk-blog";
36
36
  import { unstyled } from "@ingram-tech/nk-blog/unstyled";
37
37
 
@@ -68,11 +68,11 @@ export default async function Post({ params }: PageProps<"/blog/[slug]">) {
68
68
  else. `render` enforces this in the AST (`remarkLimitedMdx`): no ESM, no
69
69
  `{…}` expressions, literal props only. Automated publishers emit `.md` (pure
70
70
  data) and validate `.mdx` with `validateLimitedMdx` before committing.
71
- - **Tier-2 (bespoke) posts** are folders with human-reviewed `components.tsx`,
72
- passed via `bespoke` which relaxes enforcement, because a human merged it.
71
+ - **Tier-2 posts** are folders with a human-reviewed `components.tsx`, passed
72
+ via `bespoke`, which relaxes the AST enforcement.
73
73
  - **No pixels in this package.** The unstyled defaults carry semantics and
74
- behavior only and accept no visual props beyond `className`. Want variation?
75
- Replace the component in your registry never add props here.
74
+ behavior only and accept no visual props beyond `className`. For variation,
75
+ replace the component in your registry; never add props here.
76
76
  - **Build-time only.** `fsSource` runs under `generateStaticParams` /
77
77
  `dynamicParams = false`; serverless functions must not read post files at
78
78
  request time (output tracing won't include them).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ingram-tech/nk-blog",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "File-based blog foundation for Next.js sites: frontmatter schema, build-time reader, limited-MDX rendering, a typed component contract with unstyled defaults, GitHub read/publish, and RSS.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -43,13 +43,13 @@
43
43
  "test": "vitest run"
44
44
  },
45
45
  "dependencies": {
46
- "@ingram-tech/nk-seo": "^0.10.0",
46
+ "@ingram-tech/nk-seo": "^0.10.1",
47
47
  "@mdx-js/mdx": "^3.1.1",
48
48
  "gray-matter": "^4.0.3",
49
49
  "react-markdown": "^10.1.0",
50
50
  "remark-gfm": "^4.0.1",
51
51
  "unist-util-visit": "^5.1.0",
52
- "zod": "^4.4.3"
52
+ "zod": "^4.5.4"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "next": ">=14.0.0",
@@ -64,18 +64,18 @@
64
64
  }
65
65
  },
66
66
  "devDependencies": {
67
- "@ingram-tech/nk-dev": "0.13.0",
67
+ "@ingram-tech/nk-dev": "0.14.1",
68
68
  "@types/mdast": "^4.0.4",
69
- "@types/node": "^26.2.0",
69
+ "@types/node": "^26.4.0",
70
70
  "@types/react": "^19.2.18",
71
- "@types/react-dom": "^19.2.4",
71
+ "@types/react-dom": "^19.2.5",
72
72
  "mdast-util-mdx-jsx": "^3.2.0",
73
- "next": "^16.3.1",
73
+ "next": "^16.3.3",
74
74
  "react": "^19.2.8",
75
75
  "react-dom": "^19.2.8",
76
76
  "typescript": "^7.0.2",
77
77
  "unified": "^11.0.5",
78
78
  "vfile": "^6.0.3",
79
- "vitest": "^4.1.10"
79
+ "vitest": "^4.1.11"
80
80
  }
81
81
  }