Skip to content

Commit

Permalink
Deprecate some old fend-wasm functions
Browse files Browse the repository at this point in the history
  • Loading branch information
printfn committed Oct 25, 2024
1 parent c9992cf commit 8e1a5e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ impl fend_core::Interrupt for TimeoutInterrupt {
}
}

#[wasm_bindgen]
/// @deprecated this function is not needed
#[wasm_bindgen(skip_typescript)]
pub fn initialise() {}

#[wasm_bindgen(typescript_custom_section)]
Expand Down Expand Up @@ -101,7 +102,7 @@ fn create_context() -> fend_core::Context {
ctx
}

// this function is deprecated
/// @deprecated use `evaluateFendWithTimeout` instead
#[wasm_bindgen(js_name = evaluate_fend_with_timeout, skip_typescript)]
pub fn evaluate_fend_with_timeout_2(input: &str, timeout: u32) -> String {
evaluate_fend_with_timeout(input, timeout)
Expand Down

0 comments on commit 8e1a5e5

Please sign in to comment.