Bump @apollo/client from 3.7.14 to 4.0.0 in /enatega-multivendor-restaurant
Type: Pull Request
State: Closed
![dependabot[bot]](https://github.com/dependabot.png)
Association: Contributor
Comments: 1
(19 days ago)
(12 days ago)
(12 days ago)
dependencies javascript
Bumps @apollo/client from 3.7.14 to 4.0.0.
Release notes
Sourced from @apollo/client
's releases.
@apollo/client
@4
.0.0Apollo Client 4.0 Release Notes
Apollo Client 4.0 delivers a more modern, efficient, and type-safe GraphQL client experience through various architectural improvements and API refinements. This release focuses on developer experience, bundle size optimization, and framework flexibility.
Key Improvements
🎯 Framework-Agnostic Core
Apollo Client 4.0 separates React functionality from the core library, making
@apollo/client
truly framework-agnostic. React exports now live in@apollo/client/react
, allowing developers to use Apollo Client with any JavaScript framework without React dependencies.📦 Smaller Bundle Sizes
- Opt-in Local State Management: The
@client
directive functionality is now opt-in via theLocalState
class, reducing bundle size when not using local state- Modern Build Target: Transpiled to target
since 2023, node >= 20, not dead
, leveraging modern JavaScript features for better performance- Improved Tree-Shaking: Proper
exports
field in package.json enables better dead code elimination💥 Unified Error Handling
Apollo Client 4.0 completely reimagines error handling for better clarity and debugging:
ApolloError
removed in favor of specific error classes- Unification of errors to a single
error
property- Network errors now respect
errorPolicy
settings- External errors passed through without wrapping
- New, more granular error classes with static
.is()
methods for robust type narrowing🔧 Enhanced TypeScript Support
- Namespaced Types: Types are now colocated with their APIs (e.g.,
useQuery.Options
instead ofQueryHookOptions
)- Precise Return Types: Return types accurately reflect the options passed (e.g.,
returnPartialData
makesdata
typeDeepPartial<TData>
)- Stricter Type Safety: Required variables are now enforced more consistently throughout the client
- New
dataState
Property: Enables accurate type narrowing of query results- Module Augmentation: Custom context types via declaration merging instead of fragile generics
- Customizable Type Implementations: Select types can now be customized to provide your own type implementation to seamlessly integrate with external tools such as GraphQL Codegen or
gql.tada
⚡ Modern Observable Implementation
Apollo Client 4.0 migrates from
zen-observable
to RxJS, providing the industry-standard Observable implementation backed by a rich ecosystem of utilities.Major Features
Unified Error Handling
Apollo Client 4.0 completely reimagines error handling for better clarity and debugging:
Key Changes:
ApolloError
removed in favor of specific error classes- Network errors now respect
errorPolicy
settings
... (truncated)
Changelog
Sourced from @apollo/client
's changelog.
4.0.0
Apollo Client 4.0 Release Notes
Apollo Client 4.0 delivers a more modern, efficient, and type-safe GraphQL client experience through various architectural improvements and API refinements. This release focuses on developer experience, bundle size optimization, and framework flexibility.
Key Improvements
🎯 Framework-Agnostic Core
Apollo Client 4.0 separates React functionality from the core library, making
@apollo/client
truly framework-agnostic. React exports now live in@apollo/client/react
, allowing developers to use Apollo Client with any JavaScript framework without React dependencies.📦 Smaller Bundle Sizes
- Opt-in Local State Management: The
@client
directive functionality is now opt-in via theLocalState
class, reducing bundle size when not using local state- Modern Build Target: Transpiled to target
since 2023, node >= 20, not dead
, leveraging modern JavaScript features for better performance- Improved Tree-Shaking: Proper
exports
field in package.json enables better dead code elimination💥 Unified Error Handling
Apollo Client 4.0 completely reimagines error handling for better clarity and debugging:
ApolloError
removed in favor of specific error classes- Unification of errors to a single
error
property- Network errors now respect
errorPolicy
settings- External errors passed through without wrapping
- New, more granular error classes with static
.is()
methods for robust type narrowing🔧 Enhanced TypeScript Support
- Namespaced Types: Types are now colocated with their APIs (e.g.,
useQuery.Options
instead ofQueryHookOptions
)- Precise Return Types: Return types accurately reflect the options passed (e.g.,
returnPartialData
makesdata
typeDeepPartial<TData>
)- Stricter Type Safety: Required variables are now enforced more consistently throughout the client
- New
dataState
Property: Enables accurate type narrowing of query results- Module Augmentation: Custom context types via declaration merging instead of fragile generics
- Customizable Type Implementations: Select types can now be customized to provide your own type implementation to seamlessly integrate with external tools such as GraphQL Codegen or
gql.tada
⚡ Modern Observable Implementation
Apollo Client 4.0 migrates from
zen-observable
to RxJS, providing the industry-standard Observable implementation backed by a rich ecosystem of utilities.Major Features
Unified Error Handling
Apollo Client 4.0 completely reimagines error handling for better clarity and debugging:
Key Changes:
ApolloError
removed in favor of specific error classes
... (truncated)
Commits
c6ec3eb
Version Packages (#12862)07d4d60
Exit prerelease mode2d1627c
Merge pull request #12201 from apollographql/release-4.0c6ae39c
start work on the migration guide (#12836)37f03ce
adjust sidebar for v3/v4 (#12861)dd0b59a
Merge remote-tracking branch 'origin/main' into release-4.0cdcd7ed
Version Packages (#12855)6440e8b
last-minute codemod tweaks and corrections (#12858)17b665e
Choresed3dec6
Merge remote-tracking branch 'origin/main' into release-4.0- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
1
2
+48
-70
Package Dependencies
@apollo/client
npm
3.7.14 → 4.0.0
Major
/enatega-multivendor-restaurant
Technical Details
ID: | 6084356 |
UUID: | 2770402283 |
Node ID: | PR_kwDOMv82Fs6lIPvr |
Host: | GitHub |
Repository: | lambertf917/online-food-ordering-systems-using-php-and-mysql |
Merge State: | Unknown |