diff --git a/CHANGELOG.md b/CHANGELOG.md index a94331e..6890d18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +# docx-wasm@0.0.215 (26. November, 2021) + +- Add before/afterLines to LineSpacingJSON. + # docx-wasm@0.0.214 (26. November, 2021) - Fixed a missed pkg. diff --git a/README.md b/README.md index 852356a..6ac46b4 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ writeFileSync("hello.docx", buffer); - Node.js 16+ - yarn 1+ -- wasm-pack (https://rustwasm.github.io/wasm-pack/) +- wasm-pack0.10.1 (https://rustwasm.github.io/wasm-pack/) - insta (https://github.com/mitsuhiko/insta) ### Examples @@ -174,6 +174,3 @@ $ yarn test -- --updateSnapshot - [ ] Table of contents - [ ] Section -## Requirements - -- wasm-pack 0.9.1+ diff --git a/docx-wasm/js/json/line_spacing.ts b/docx-wasm/js/json/line_spacing.ts index d7854d1..496f754 100644 --- a/docx-wasm/js/json/line_spacing.ts +++ b/docx-wasm/js/json/line_spacing.ts @@ -1,9 +1,11 @@ export type LineSpacingJSON = { - before: number | null; - after: number | null; - line: number | null; - lineRule: { - type: "atLeast" | "auto" | "exact"; - val: number; - } | null; + before?: number | null; + after?: number | null; + beforeLines?: number | null; + afterLines?: number | null; + line?: number | null; + lineRule?: { + type: "atLeast" | "auto" | "exact"; + val: number; + } | null; }; diff --git a/docx-wasm/package.json b/docx-wasm/package.json index 27b7937..74f2857 100644 --- a/docx-wasm/package.json +++ b/docx-wasm/package.json @@ -1,6 +1,6 @@ { "name": "docx-wasm", - "version": "0.0.214", + "version": "0.0.215", "main": "dist/node/index.js", "browser": "dist/web/index.js", "author": "bokuweb ",