diff --git a/CHANGELOG.md b/CHANGELOG.md index 3cabd9e..dc6966c 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.229 (19. January, 2022) + +- Fixed a del/ins type in runProperty + ## docx-wasm@0.0.228 (18. January, 2022) - Fixed a bug, numPr reader panic when id is none. diff --git a/docx-core/examples/reader.rs b/docx-core/examples/reader.rs index 8f89df7..f1b9065 100644 --- a/docx-core/examples/reader.rs +++ b/docx-core/examples/reader.rs @@ -4,7 +4,7 @@ use std::fs::File; use std::io::{Read, Write}; pub fn main() { - let mut file = File::open("./table-indent.docx").unwrap(); + let mut file = File::open("./center.docx").unwrap(); let mut buf = vec![]; file.read_to_end(&mut buf).unwrap(); diff --git a/docx-wasm/js/json/run.ts b/docx-wasm/js/json/run.ts index 6197711..9b6edef 100644 --- a/docx-wasm/js/json/run.ts +++ b/docx-wasm/js/json/run.ts @@ -37,8 +37,8 @@ export type RunPropertyJSON = { vanish?: boolean | null; spacing?: number | null; textBorder?: TextBorderJSON | null; - ins?: InsertJSON | null; - del?: DeleteJSON | null; + ins?: InsertJSON['data'] | null; + del?: DeleteJSON['data'] | null; strike?: boolean; }; diff --git a/docx-wasm/package.json b/docx-wasm/package.json index 4e95a4e..d353ca3 100644 --- a/docx-wasm/package.json +++ b/docx-wasm/package.json @@ -1,6 +1,6 @@ { "name": "docx-wasm", - "version": "0.0.228", + "version": "0.0.229", "main": "dist/node/index.js", "browser": "dist/web/index.js", "author": "bokuweb ",