forked from getsentry/rust-sourcemap
-
Notifications
You must be signed in to change notification settings - Fork 0
chore: Merge upstream changes #10
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
Open
kdy1
wants to merge
7
commits into
main
Choose a base branch
from
merge-upstream-master
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1785aa6
chore: Fix 1.88.0 clippy lints (#130)
loewenheim 986b691
fix: Fix 1.89.0 clippy lints (#132)
loewenheim f96e3d1
ref: Store SourceView linecache as offsets rather than pointers (#133)
coolreader18 fb19fa4
feat(debugId): Serialize source maps with `debugId`, not `debug_id` (…
szokeasaurusrex 210972f
release: 9.3.0
getsentry-bot e293721
Merge branch 'release/9.3.0'
3b3ef84
Merge upstream/master into main
kdy1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| [package] | ||
| name = "cli" | ||
| version = "9.2.2" | ||
| version = "9.3.0" | ||
| authors = ["Armin Ronacher <[email protected]>"] | ||
| edition = "2018" | ||
|
|
||
|
|
||
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
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
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,8 +1,9 @@ | ||||||
| use bytes_str::BytesStr; | ||||||
| use debugid::DebugId; | ||||||
| use serde::de::IgnoredAny; | ||||||
| use serde::{Deserialize, Serialize}; | ||||||
| use serde::{Deserialize, Deserializer, Serialize}; | ||||||
| use serde_json::Value; | ||||||
| use std::fmt::Debug; | ||||||
|
|
||||||
| #[derive(Serialize, Deserialize, PartialEq, Debug)] | ||||||
| pub struct RawSectionOffset { | ||||||
|
|
@@ -55,12 +56,8 @@ pub struct RawSourceMap { | |||||
| pub x_metro_module_paths: Option<Vec<String>>, | ||||||
| #[serde(skip_serializing_if = "Option::is_none")] | ||||||
| pub x_facebook_sources: FacebookSources, | ||||||
| #[serde(skip_serializing_if = "Option::is_none")] | ||||||
| pub debug_id: Option<DebugId>, | ||||||
| // This field only exists to be able to deserialize from "debugId" keys | ||||||
| // if "debug_id" is unset. | ||||||
| #[serde(skip_serializing_if = "Option::is_none", rename = "debugId")] | ||||||
| pub(crate) _debug_id_new: Option<DebugId>, | ||||||
| #[serde(flatten)] | ||||||
| pub debug_id: DebugIdField, | ||||||
| } | ||||||
|
|
||||||
| #[derive(Deserialize)] | ||||||
|
|
@@ -76,3 +73,91 @@ pub struct MinimalRawSourceMap { | |||||
| pub names: Option<IgnoredAny>, | ||||||
| pub mappings: Option<IgnoredAny>, | ||||||
| } | ||||||
|
|
||||||
| /// This struct represents a `RawSourceMap`'s debug ID fields. | ||||||
| /// | ||||||
| /// The reason this exists as a seperate struct is so that we can have custom deserialization | ||||||
| /// logic, which can read both the legacy snake_case debug_id and the new camelCase debugId | ||||||
|
||||||
| /// logic, which can read both the legacy snake_case debug_id and the new camelCase debugId | |
| /// logic, which can read both the legacy snake_case debug_id and the new camelCase debugId |
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spelling error: "seperate" should be "separate".