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

Version 0.3.2 update #248

Merged
merged 313 commits into from
Jun 10, 2024
Merged

Version 0.3.2 update #248

merged 313 commits into from
Jun 10, 2024

Conversation

konraddysput
Copy link
Collaborator

Why

This pull request updates the master branch with changes from the dev branch. Some changes are already released, so we need to make sure the master branch represents what is available in the public registry.

konraddysput and others added 30 commits June 30, 2023 12:25
* URL parsers

* Command line attribute provider

* Code review suggestions

* Metrics support

* Nullable token

* Accept null | undefined

* Correct import

* Determines typo

* Code review adjustements

* Code review adjustements, test based on the variable and not random date, delay helper reject

* Recursive to iterative + delay helper error on reject

* Added one more test case

* Rollback submission url in the test
* sdk-core: add DebugIdProvider and DebugIdMapProvider

* sdk-core: add appending debugId to frames

* browser, node: use VariableDebugIdMapProvider

* sdk-core: change debugId to debug_identifier

* sdk-core: fix unit tests, add test for debug_identifier set

* sdk core: load debugIds on DebugIdProvider construction

---------

Co-authored-by: Sebastian Alex <[email protected]>
* sourcmap tools: replace SourceMapUploader with SymbolUploader

* sourcmap tools: add ZipArchive

* webpack plugin: change uploading of sourcemaps to ZIP upload

* build: update webpack tsconfig.json path

* sourcemap tools: fix ZipArchive test missing dir

* webpack plugin: fix zipping sourcemaps by passing stream instead of string

* sourcemap tools: minor type fixes in ZipArchive

---------

Co-authored-by: Sebastian Alex <[email protected]>
* Adding React Backtrace Client, ErrorBoundary, and tests

* Adding package-lock.json file

* Changing props and state to use interfaces instead of type

* Switching from a window variable to a static instance on BacktraceClient

* Updating the static instance in BacktraceClient to use a getter as well as it's usage and tests

* Making the instance param of BacktraceClient optional

---------

Co-authored-by: Adam Cronin <[email protected]>
* sourcemap tools: add functions to DebugIdGenerator for retrieving values

* sourcemap tools: add FileFinder

* sourcemap tools: add Logger definition

* sourcemap tools, webpack plugin: change process file fn to not write to disk

* sourcemap tools: add sources to source map functionality

* sourcemap tools: add Result and AsyncResult

* cli, webpack, sourcemap tools: add Result returning for error handling

---------

Co-authored-by: Sebastian Alex <[email protected]>
* cli: add initial @backtrace/cli project

* cli: add command-line-args and command-line-usage package

* cli: add commands support

* cli: add logger implementation and usage

* cli: add reference to @backtrace/sourcemap-tools

* cli: add common functions

* cli: add process command

* cli: add upload command

* cli: add addSources command

* cli: add archive output feature

* cli: change verbosity levels

* cli: add doc to find

* cli: extract 'backtrace' command name to a const

* cli: fix file collisions in uploaded zip archive

* cli: change default Command generic param to object

---------

Co-authored-by: Sebastian Alex <[email protected]>
* Adding React Backtrace Client, ErrorBoundary, and tests

* Creating a basic react app that uses the react sdk to send an error to Backtrace on rendering error

* Adding a button to manually trigger an error/report and updating some of the wording

* Updating tsconfig

* Adding a format and lint script to package.json

* Updating readme to show how to run the example

* Removing eslintConfig from package.json

* Cleaning up package.json

* Cleaning up sendError(), Adding submission url const, and adding toasts

* Updating README.md to be more specific to our app and removing eject and test scripts from package.json

* Adding a message example and updating wording on buttons

* Removing unnecessary text from readme

* Adding a metrics example

---------

Co-authored-by: Adam Cronin <[email protected]>
* sourcemap tools: remove ContentAppender

* sourcemap tools: fix processing source with shebang

* sourcemap tools: add source comment before trailing whitespaces in source

* sourcemap tools: add doc to appendBeforeWhitespaces

* sourcemap tools: fix appendBeforeWhitespaces and add tests to it

* sourcemap tools: update doc in appendBeforeWhitespaces

---------

Co-authored-by: Sebastian Alex <[email protected]>
Co-authored-by: Sebastian Alex <[email protected]>
* Node unhandled exceptions/rejections

* Correct submission URL

* Unhandled exception handler

* Do not exted launch settings

* Respect unhandled rejection mode in app

* Improve warning messages generated on unhandled promise rejection. Added options to disable the feature

* Fixed typo in node_env

* Move functions to consts
* Browser unhandled error handler

* Client - subscribe to event handlers

* Browser unhandled error handler
* Before send event support

* Skip report callback

* Test name fix
* Updating readme to show how to run the example

* Updating README.md to be more specific to our app and removing eject and test scripts from package.json

* Adding ability to send BacktraceData to the client.send(). This allows us to add the component stack as a thread to be viewed in the UI as well

* Adding ability to detect and parse React 16 component stacks as well as tests

* Quick cleanup

* Adding check for object in isBacktraceData

* Updating the react component stack parsing to better follow existing patterns. This adds a react stack trace converter and updates the BacktraceReport stackTrace to be a Record with stack trace info as the value

* Fixing reference to BacktraceData

* Updates based on PR feedback. The main one being adding message back as a field in BacktraceReport

* Moving the React 16 component stack helpers to ReactStackTraceConverter

* Adding tests for BacktraceReport.addStackTrace()

* Adding a test for thread generation in BacktraceDataBuilder

* Updating comment format

---------

Co-authored-by: Adam Cronin <[email protected]>
* Breadcrumbs support

* Code review adjustements

* Move from array to overwriting array data structure

* Return if array is empty
* sourcemap tools: fix doesSourceMapHaveSources with undefined sources array

* sourcemap tools: add functions in AsyncResult

* sourcemap tools: add common helpers from CLI to sourcemap-tools and use them

* sourcemap tools: add some common functions and match functions

* sourcemap tools: add common code for managing sourcemaps

---------

Co-authored-by: Sebastian Alex <[email protected]>
* cli: use helper functions from sourcemap-tools

* cli: refactor commands to add more debugging and clarity

---------

Co-authored-by: Sebastian Alex <[email protected]>
* sourcemap tools: fix doesSourceMapHaveSources with undefined sources array

* sourcemap tools: add functions in AsyncResult

* sourcemap tools: add common helpers from CLI to sourcemap-tools and use them

* sourcemap tools: add some common functions and match functions

* sourcemap tools: add common code for managing sourcemaps

* webpack: update plugin to use common code

---------

Co-authored-by: Sebastian Alex <[email protected]>
* sourcemap tools: fix doesSourceMapHaveSources with undefined sources array

* sourcemap tools: add functions in AsyncResult

* sourcemap tools: add common helpers from CLI to sourcemap-tools and use them

* sourcemap tools: add some common functions and match functions

* sourcemap tools: add common code for managing sourcemaps

* rollup plugin: add initial project

* rollup plugin: add plugin based on Webpack plugin

---------

Co-authored-by: Sebastian Alex <[email protected]>
* sourcemap tools: add stripping of sourceContent by default

* cli: fix build error temporarily

* webpack plugin: use common BacktracePluginOptions

* update package-lock.json

* workflows: use npm@8 with node 14.x

---------

Co-authored-by: Sebastian Alex <[email protected]>
* cli: add stripping sourcesContent by default

* cli: remove commented function in upload

---------

Co-authored-by: Sebastian Alex <[email protected]>
* vite plugin: add initial project

* vite plugin: add re-export of rollup plugin and vite build tests

---------

Co-authored-by: Sebastian Alex <[email protected]>
* Database support

* Do not include deduplication model yet

* Code review adjustements

* Handle potential errors in the storage provider
* Adding name prop to ErrorBoundary and sending as an attribute so users can distinguish between multiple

* Changing min supported version of React to 16.8.0 (hooks) and adding webpack, webpack-cli, and ts-loader to package.json

* Adding an Inner ErrorBoundary to the react example app

* Adding error.type when sending via the ErrorBoundary

* Changing the ErrorBoundary name to be optional with a default

* Updating error.type in ErrorBoundary

---------

Co-authored-by: Adam Cronin <[email protected]>
* Browser breadcrumbs support

* Code review adjustements to the WebREquestEventSubscriber

* Add text as an attribute
konraddysput and others added 21 commits January 19, 2024 16:18
Co-authored-by: Sebastian Alex <[email protected]>
* sdk-core: Return send result

* Rename method
* sdk-core: Destroy client via the dispose method

* Undo metrics setup for node example
* sdk-core: add useModule to builder, export dataStructures

* session-replay: add initial workspace

* session-replay: add session recorder module

* session-replay: re-emit events to advancedOptions emit

* session-replay: add options and docs

* browser example: add example usage of session-replay

* chore: update package-lock.json

* session-replay: extract options to separate file, add inspect callback

* session-replay: update description

* session-replay: remove test script

* session-replay: remove unnecessary check from BacktraceSessionRecorder.get

* session-replay: add separate options for disabling limits

---------

Co-authored-by: Sebastian Alex <[email protected]>
* BT-523:auto source map upload on Android

* Apply suggestions from code review

Upload script comments

Co-authored-by: Sebastian Alex <[email protected]>

---------

Co-authored-by: Sebastian Alex <[email protected]>
* iOS source map support

* Modify xcode project

* Remove project reference

* Clean up project information

* Readme update

* Use npx everywhere

* Correct npx usage
* Exit on disabled database

* Add abortsignlar support to the send method

* Abort controller comment

* Use abort signal in flush/send method

* Return instead of throwIfAborted

* Abort signal comment in the database definition

* Verify abort signal in the loop
* Release 0.3.2

* Different changelog message

* Add reference to pull request
@konraddysput konraddysput added the enhancement New feature or request label Jun 10, 2024
@konraddysput konraddysput requested review from perf2711 and rick-bt June 10, 2024 14:33
@konraddysput konraddysput self-assigned this Jun 10, 2024
@konraddysput konraddysput merged commit 2e663b7 into main Jun 10, 2024
8 checks passed
@konraddysput konraddysput deleted the dev branch June 10, 2024 15:18
@konraddysput konraddysput restored the dev branch June 10, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants