Conversation
- Introduced crate with a Cargo.toml and lib.rs for WASM support. - Implemented functions to generate tokens from error stacks and single stack traces. - Added context lookup capabilities for source maps. - Created a crate for parsing and mapping JavaScript stack traces. - Implemented core functionalities including stack line parsing, error stack mapping, and source unpacking. - Added tests for the new functionalities to ensure correctness. - Included a build script for building the WASM package targeting Node.js.
- Introduced a GitHub Actions CI workflow () to automate the build and test process for the Rust WASM project. - Configured caching for Cargo and wasm-pack to speed up builds. - Added steps for running native tests and WASM node tests. feat: implement release workflow for automated versioning and publishing - Created a GitHub Actions release workflow () triggered by version tags. - Added steps for verifying crate versions, running tests, generating changelogs, and publishing to crates.io, npm, and GitLab. - Implemented GitHub release creation with changelog notes. docs: add CONTRIBUTORS guide for project contributors - Added to provide guidelines for contributing to the project, including setup, coding standards, and release processes. fix: update author information in Cargo.toml - Changed author field in to include email address for better identification. docs: update README for WASM usage and testing instructions - Revised the README to clarify usage instructions for the WASM Node package and added testing instructions. test: add WASM tests for token generation and error mapping - Created new test files ( and ) to cover WASM functionality in the Node SDK. - Implemented tests for various token generation and error mapping scenarios. refactor: improve context lookup and stack transformation logic - Enhanced the context lookup function to return more structured context lines. - Added unit tests for context lookup and stack transformation functionalities. test: add integration tests for SourceMapParserClient - Introduced integration tests in to validate the SourceMapParserClient's functionality with various source maps. chore: add changelog generation script - Implemented a script () to automate changelog generation based on commit messages following the Conventional Commits format.
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR initializes a new source map parser library written in Rust with WASM bindings for Node.js. The library provides comprehensive source map parsing capabilities including stack trace parsing, token mapping, and context extraction.
- Core source map parsing library with support for multiple JavaScript engines (V8, Firefox, Safari)
- WASM bindings for Node.js integration with comprehensive API exports
- Build scripts and CI/CD pipeline setup for automated testing and publishing
Reviewed Changes
Copilot reviewed 22 out of 23 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/generate-changelog.sh | Changelog generation script for conventional commits |
| scripts/build-wasm-node.sh | Build script for WASM Node.js target |
| crates/source_map_parser/ | Core library with parsing, mapping, and context extraction |
| crates/node_sdk/ | WASM bindings and Node.js integration layer |
| .github/workflows/ | CI/CD workflows for testing and release automation |
| README.md | Project documentation and usage examples |
| Cargo.toml | Workspace configuration |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
No description provided.