Comments (5)
🎉 This issue has been resolved in version 3.3.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
from apollo-link-sentry.
Using chrome's code coverage here is how chunk changed after removing apollo-link-sentry
from the project (before, after):
Reduction of total size ~230kb
Reduction of unused size ~170kb
from apollo-link-sentry.
Open for suggestions or pull requests to fix this, I do not plan to work on this myself.
from apollo-link-sentry.
In my project I don't have problem with so much code added by apollo-link-sentry
. I think it's because:
- most of dependencies has already existed in project (
@apollo/client
,zen-observable-ts
,@sentry/browser
andgraphql
) - Tree shaking works well (I use Parcel 2.x)
Anyway I suggest to drop some dependencies that seems unecessary to me. I can prepare PR when agreed. E.g.:
deepmerge
which is used to merge options with default options. Because options has well known (and very simple) shape, we can achieve the same with following and save 3 kB.
export function withDefaults(options: SentryLinkOptions): FullOptions {
return {
…defaultOptions,
…options,
attachBreadcrumbs: {
…defaultOptions.attachBreadcrumbs
…options?.attachBreadcrumbs
}
};
}
dot-props
– 7 kB of code to just pick properties from operation context. Let's makeoption.attachBreadcrumbs.includeCache
a callback to give user same capability with no dependency needed. This change would be breaking though.
from apollo-link-sentry.
I can prepare PR when agreed.
Please do, I am fine with releasing a new major version that breaks things. Consider https://github.com/angular/angular/blob/main/CONTRIBUTING.md#-commit-message-format.
from apollo-link-sentry.
Related Issues (20)
- Question: Possible to only attach breadcrumbs when an error occurs? HOT 1
- Question: recommended way to limit size of breadcrumbs? HOT 1
- excludeGraphQLFetch should remove unsupported fragment definitions HOT 2
- Maintainership of this package HOT 8
- Test usage with subscriptions HOT 3
- Test usage with `apollo-link-error` HOT 2
- Missing dependencies on NextJS build
- Add sentry-trace header HOT 4
- Newest version breaks with react-native HOT 2
- Severity is undefined HOT 4
- Create-React-App warns about missing SourceMap HOT 1
- Remove peer dependencies HOT 1
- Transform function can change response for downstream links HOT 2
- Missing Typescript types for zen-observable in non-dev installation HOT 2
- Remove specific param from gql mutations HOT 1
- Enable `apollo-link-sentry` tree-shaking via ESM HOT 1
- Add the "@sentry/browser" package to the dependencies section in your package.json file, not in devDependencies HOT 3
- Can't use package without supporting esnext
- Sentry v8 compatibility HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo-link-sentry.