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

ref(backend): Delete Backend classes #4919

Merged
merged 2 commits into from
Apr 12, 2022
Merged

ref(backend): Delete Backend classes #4919

merged 2 commits into from
Apr 12, 2022

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Apr 12, 2022

Following the porting of Backend functionality to Client in #4911, this PR now deletes the Backend classes. Specifically the following classes and files are removed:

  • Backend (interface)
  • BaseBackend*
  • BrowserBackend
  • NodeBackend
  • TestBackend*

*Option interfaces in these files were moved to the respective Client files

Additionally,

  • this PR deletes (the previously ported) Noop Transport test in packages/browser/test/unit/backend.test.ts.
  • A few remaining Backend references in tests were adjusted to use Client classes
  • BaseBackend documentation was adjusted to no longer include Backend information

ref: https://getsentry.atlassian.net/browse/WEB-462

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.97 KB (-0.87% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 63.73 KB (-1.37% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.62 KB (-1.26% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 57.32 KB (-1.13% 🔽)
@sentry/browser - Webpack (gzipped + minified) 23.39 KB (+0.65% 🔺)
@sentry/browser - Webpack (minified) 80.99 KB (-0.89% 🔽)
@sentry/react - Webpack (gzipped + minified) 23.42 KB (+0.64% 🔺)
@sentry/nextjs Client - Webpack (gzipped + minified) 47.78 KB (-0.57% 🔽)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 25.89 KB (-0.69% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.32 KB (-0.68% 🔽)

@Lms24 Lms24 added this to the 7.0.0 milestone Apr 12, 2022
Copy link
Member

@lforst lforst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I was wondering if we should just make _setupTransport in the base client abstract and get rid of NoopTransport but let's just do this when we inject the transports into the client.

@Lms24
Copy link
Member Author

Lms24 commented Apr 12, 2022

Yup, I agree, it would be good to get rid of it. But as you said, this should be done in a separate PR (I'm already working on injecting the Transports).

Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️ awesome

@Lms24 Lms24 merged commit 3f59f9d into 7.x Apr 12, 2022
@Lms24 Lms24 deleted the lms-delete-backend branch April 12, 2022 11:35
lobsterkatie pushed a commit that referenced this pull request Apr 13, 2022
Delete the Backend classes. Specifically the following classes and files are removed:

* `Backend (interface)`
* `BaseBackend`*
* `BrowserBackend`
* `NodeBackend`
* `TestBackend`*

*`Options` interfaces in these files were moved to the respective Client files

Additionally,

* delete (the previously ported) `NoopTransport` test in packages/browser/test/unit/backend.test.ts.
* adjust a few remaining Backend references in tests to use Client classes
* adjust `BaseBackend` documentation to no longer include Backend information
Lms24 added a commit that referenced this pull request Apr 26, 2022
Delete the Backend classes. Specifically the following classes and files are removed:

* `Backend (interface)`
* `BaseBackend`*
* `BrowserBackend`
* `NodeBackend`
* `TestBackend`*

*`Options` interfaces in these files were moved to the respective Client files

Additionally,

* delete (the previously ported) `NoopTransport` test in packages/browser/test/unit/backend.test.ts.
* adjust a few remaining Backend references in tests to use Client classes
* adjust `BaseBackend` documentation to no longer include Backend information
lobsterkatie pushed a commit that referenced this pull request Apr 26, 2022
Delete the Backend classes. Specifically the following classes and files are removed:

* `Backend (interface)`
* `BaseBackend`*
* `BrowserBackend`
* `NodeBackend`
* `TestBackend`*

*`Options` interfaces in these files were moved to the respective Client files

Additionally,

* delete (the previously ported) `NoopTransport` test in packages/browser/test/unit/backend.test.ts.
* adjust a few remaining Backend references in tests to use Client classes
* adjust `BaseBackend` documentation to no longer include Backend information
lobsterkatie pushed a commit that referenced this pull request Apr 26, 2022
Delete the Backend classes. Specifically the following classes and files are removed:

* `Backend (interface)`
* `BaseBackend`*
* `BrowserBackend`
* `NodeBackend`
* `TestBackend`*

*`Options` interfaces in these files were moved to the respective Client files

Additionally,

* delete (the previously ported) `NoopTransport` test in packages/browser/test/unit/backend.test.ts.
* adjust a few remaining Backend references in tests to use Client classes
* adjust `BaseBackend` documentation to no longer include Backend information
AbhiPrasad pushed a commit that referenced this pull request May 30, 2022
Delete the Backend classes. Specifically the following classes and files are removed:

* `Backend (interface)`
* `BaseBackend`*
* `BrowserBackend`
* `NodeBackend`
* `TestBackend`*

*`Options` interfaces in these files were moved to the respective Client files

Additionally,

* delete (the previously ported) `NoopTransport` test in packages/browser/test/unit/backend.test.ts.
* adjust a few remaining Backend references in tests to use Client classes
* adjust `BaseBackend` documentation to no longer include Backend information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants