Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking JS changes: Driver.new(InitOptions); WasmResult wrapper/.unwrap(); parseStyleMetadata #94

Merged
merged 22 commits into from
Dec 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
0ff61a9
Wrap most wasm APIs in a JS version of Result, to avoid wasm-bindgen'…
cormacrelf Nov 24, 2020
5260266
test fix: csl "rel-self" bug
cormacrelf Nov 20, 2020
80f6f06
test fix: when csl stopped serializing empty error hints
cormacrelf Nov 20, 2020
3db0b23
Less salsa caching of uncited items
cormacrelf Nov 13, 2020
f3f525f
wasm: Global export of include.js items in Node.js as well
cormacrelf Nov 13, 2020
efdb69b
Rename interface Lifecycle -> Fetcher (TS breaker); better typescript
cormacrelf Nov 30, 2020
80aadc3
Produce a Zotero build using Zotero.CiteprocRs namespace
cormacrelf Nov 30, 2020
1a0bae8
Render RTF links as RTF
cormacrelf Nov 30, 2020
21b0cf5
js-demo: get rid of react-async-component
cormacrelf Nov 30, 2020
f61b249
Improve the wasm demo, show style metadata & hide bibliography based …
cormacrelf Dec 1, 2020
5ad2a6e
Export WasmResult/*Errors to global always again
cormacrelf Dec 1, 2020
7c41ba2
Increase the wasm stack size to 8MB just because we can
cormacrelf Dec 1, 2020
d733168
Make include.js' Node.js/_cjs output valid CommonJS
cormacrelf Dec 1, 2020
1608279
Update test suite to use .unwrap(), test previewCitationCluster
cormacrelf Dec 1, 2020
b51a222
Fix WasmResult typescript mismatch, hide implementation detail from API
cormacrelf Dec 1, 2020
8958363
wasm docs: WasmResult, parseStyleMetadata, _include.js, Zotero
cormacrelf Dec 1, 2020
c6e7549
rename bibliography_nosort/Nosort to no_sort/NoSort
cormacrelf Dec 3, 2020
5ac6a14
Rename fetchAll -> fetchLocales (and document it better)
cormacrelf Dec 3, 2020
bbae242
npm: Copy js snippets; --targets; fix commonjs output again
cormacrelf Dec 3, 2020
f6aa660
Build nodejs package for js-tests in --dev mode
cormacrelf Dec 3, 2020
af248cb
Slightly improve typescript for DriverError (doesn't include StyleError)
cormacrelf Dec 3, 2020
0bae187
ci: Build js-tests package in correct path
cormacrelf Dec 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ jobs:
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f

- name: Build WASM
working-directory: crates/wasm
run: wasm-pack build --target nodejs --out-dir pkg-node --scope citeproc-rs --dev
working-directory: crates/wasm/js-tests
run: yarn build

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand Down
56 changes: 32 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/citeproc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ thiserror = "1.0.20"
string-interner = "0.12.0"
parking_lot = "0.11.0"
rand = "0.7.3"
indexmap = "1.6.0"

[dev-dependencies]
test_utils = { path = "../test-utils" }
Expand Down
Loading