Skip to content

Commit 04d547a

Browse files
committed
RELEASING: Releasing 2 package(s)
Releases: mdast2docx@1.3.0 @repo/shared@0.0.19
1 parent 1ecb36f commit 04d547a

File tree

6 files changed

+116
-30
lines changed

6 files changed

+116
-30
lines changed

lib/CHANGELOG.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,81 @@
11
# mdast2docx
22

3+
## 1.3.0
4+
5+
### Minor Changes
6+
7+
- The following @m2d/\* dependencies were upgraded:
8+
9+
### @m2d/core: 1.2.0 → 1.4.1
10+
11+
**Minor Changes**
12+
13+
- Refactored `createPersistentCache` to accept a `config` object for optional settings.
14+
- **In-memory cache sharing**: Pass a shared cache object to coordinate between modules or tabs.
15+
- **Configurable cache strategies**:
16+
- `cacheTarget`: choose where data is stored — RAM, IndexedDB, or both.
17+
- `parallel`: race compute and read to optimize latency.
18+
- Update types to ensure sufficient data for converting to jsx
19+
- refactor plugin interface to update postprocess hook. Since there is very limited scope for utilizing the document object once creted, we are moving the postprocess hook to be called just before creating the document object. It gets list of sections which can be finished up just before converting to docx.
20+
21+
**Patch Changes**
22+
23+
- Better type safety and minor rename cacheTarget to cacheMode
24+
- fix: Bring back the Extended Node support and default to EmptyNode
25+
- Simplify types.
26+
- fix: Update types for supporting HTML and advanced tables
27+
- fix tag types in node data
28+
29+
### @m2d/emoji: 0.1.2 → 0.1.3
30+
31+
_No changelog available._
32+
33+
### @m2d/html: 1.0.3 → 1.1.2
34+
35+
**Minor Changes**
36+
37+
- Support block node inside table cells. Add tag to data for easy JSX creation
38+
39+
**Patch Changes**
40+
41+
- fix advanced table handling
42+
- fix: empty HTML table cells
43+
44+
### @m2d/image: 1.2.0 → 1.3.1
45+
46+
**Minor Changes**
47+
48+
- Added support for optimized in-memory caching of resolved image data.
49+
- Introduced `cacheConfig.cache` option to share or inject a memory cache instance across multiple plugin invocations.
50+
- Consumers can now fine-tune cache behavior using `cacheConfig.parallel` (to avoid redundant parallel resolutions) and `cacheConfig.cacheMode` (choose between `"memory"`, `"idb"`, or `"both"`).
51+
- Enhances image resolution performance in multi-page or repeated image scenarios, especially when used across sessions or documents.
52+
53+
**Patch Changes**
54+
55+
- provide cache field to avoid entire cacheConfig option for simple cache sharing optimizations.
56+
- Store type in \_type for conversion to JSX
57+
58+
### @m2d/list: 0.0.7 → 0.0.8
59+
60+
**Patch Changes**
61+
62+
- Ensure enough data is available on node after processing to convert to JSX.
63+
64+
### @m2d/mermaid: 1.1.4 → 1.2.2
65+
66+
**Minor Changes**
67+
68+
- Added support for optimized in-memory caching of resolved mermaid data.
69+
- Introduced `cacheConfig.cache` option to share or inject a memory cache instance across multiple plugin invocations.
70+
- Consumers can now fine-tune cache behavior using `cacheConfig.parallel` (to avoid redundant parallel resolutions) and `cacheConfig.cacheMode` (choose between `"memory"`, `"idb"`, or `"both"`).
71+
- Enhances mermaid resolution performance in multi-page or repeated mermaid scenarios, especially when used across sessions or documents.
72+
73+
**Patch Changes**
74+
75+
- fix: handle edgecase when cache is deleberately set to null.
76+
- provide cache field to avoid entire cacheConfig option for simple cache sharing optimizations.
77+
- Update types to be competible with the rest of the ecosystem.
78+
379
## 1.2.0
480

581
### Minor Changes

lib/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "mdast2docx",
33
"author": "Mayank Kumar Chaudhari (https://mayank-chaudhari.vercel.app)",
44
"private": false,
5-
"version": "1.2.0",
5+
"version": "1.3.0",
66
"description": "Convert Markdown Abstract Syntax Tree (MDAST) to DOCX seamlessly. Supports footnotes, images, links, and customizable document properties.",
77
"license": "MPL-2.0",
88
"main": "./dist/index.js",
@@ -105,13 +105,13 @@
105105
"vitest": "^3.2.3"
106106
},
107107
"dependencies": {
108-
"@m2d/core": "^1.3.4",
108+
"@m2d/core": "^1.4.1",
109109
"@m2d/emoji": "^0.1.3",
110110
"@m2d/html": "^1.1.2",
111-
"@m2d/image": "^1.2.1",
111+
"@m2d/image": "^1.3.1",
112112
"@m2d/list": "^0.0.8",
113113
"@m2d/math": "^0.0.5",
114-
"@m2d/mermaid": "^1.1.5",
114+
"@m2d/mermaid": "^1.2.2",
115115
"@m2d/table": "^0.0.6",
116116
"docx": "^9.5.0"
117117
},

packages/shared/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @repo/shared
22

3+
## 0.0.19
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- mdast2docx@1.3.0
9+
310
## 0.0.18
411

512
### Patch Changes

packages/shared/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@repo/shared",
3-
"version": "0.0.18",
3+
"version": "0.0.19",
44
"private": true,
55
"sideEffects": false,
66
"main": "./dist/index.js",

pnpm-lock.yaml

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/generate-changeset.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const { execSync } = require("child_process");
22
const fs = require("fs");
33
const path = require("path");
44
const https = require("https");
5+
const { exit } = require("process");
56

67
// === Semver Utils ===
78
function parseVersion(v) {
@@ -183,6 +184,8 @@ async function run() {
183184
createChangeset(updates);
184185
}
185186

186-
run().catch(err => {
187-
console.error("❌ Script failed:", err);
188-
});
187+
run()
188+
.catch(err => {
189+
console.error("❌ Script failed:", err);
190+
})
191+
.finally(() => exit());

0 commit comments

Comments
 (0)