Conversation
… and usage examples This commit modifies the package description in `package.json` for clarity. Additionally, it removes unnecessary comments and whitespace from the `benchmark.js` and `usage.js` example files, enhancing readability and maintaining focus on the core functionality of the native filters.
This commit adds a linked project configuration for the Rust analyzer in the VSCode settings and updates the `Cargo.toml` file to include an additional crate type for the `liquid-forge-native` package. These changes enhance the development environment and improve the build capabilities of the native filters.
This commit optimizes the `escape` and `newline_to_br` functions in the HTML filter by simplifying the character checks and replacements. The changes enhance performance by using array-based checks and replacements, improving the overall efficiency of the text processing in the native filters.
This commit modifies the GitHub Actions workflow for Rust by changing the `cargo check` command to focus solely on library targets instead of all targets. This adjustment streamlines the check process, improving efficiency during the CI pipeline.
This commit modifies the GitHub Actions workflow for Rust to ensure that the `cargo test` and `cargo clippy` commands are executed specifically for library targets. This change aligns with previous updates to streamline the CI process and improve efficiency.
…performance This commit updates the GitHub Actions workflow to specify the target architecture for `cargo check`, `cargo test`, and `cargo clippy`, ensuring consistency in builds. Additionally, it upgrades the `napi`, `napi-derive`, `napi-build`, and `criterion` dependencies in the `Cargo.toml` file to their latest versions, enhancing compatibility and performance in the `liquid-forge-native` package. The benchmark file is also modified to include the `black_box` function for better benchmarking accuracy.
…ge-native This commit upgrades the '@napi-rs/cli' dependency to version 3.5.0 in both the pnpm-lock.yaml and package.json files. Additionally, it updates the Node.js engine requirement in package.json to version 20 or higher, ensuring compatibility with the latest features and improvements.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Introduces CI and modernizes the native package while making small performance/ergonomic tweaks.
/.github/workflows/rust.ymlto runcargo check,cargo test, andcargo clippyforpackages/liquid-forge-nativeCargo.toml(napi/napi-deriveto 3.x,napi-buildto 2.3) and addsrlibtocrate-type; bumpscriterionto 0.8std::hint::black_box, refined benchmark/usage scripts)src/filters/html.rs(pattern-basedcontainsand newline replacement)package.json(description,@napi-rs/cli^3.5.0, require Node >=20) and VSCode settings (rust-analyzer.linkedProjects)Written by Cursor Bugbot for commit 6f746a4. This will update automatically on new commits. Configure here.