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

refactor(angular-query): build with tsup and remove devtools component #8284

Merged
merged 4 commits into from
Nov 14, 2024

Conversation

arnoud-dv
Copy link
Collaborator

@arnoud-dv arnoud-dv commented Nov 12, 2024

This changes the build process of the Angular adapter to use tsup. When not relying on a certain version of the Angular compiler, its mandatory TypeScript version, the Angular runtime or ng-packagr it will be easier to support multiple Angular versions. The Angular packages then only rely on the public API of Angular.

This removes the <angular-query-devtools> component as components depend on the Angular compiler.

In most cases this can simply be replaced by withDevtools, which will load devtools when Angular runs in developer mode. For more details and configuration, see the devtools documentation.

Example of withDevtools

export const appConfig: ApplicationConfig = {
  providers: [
    provideTanStackQuery(new QueryClient(), withDevtools()),
  ]
}

Copy link

nx-cloud bot commented Nov 12, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit e98bab4. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

Copy link

pkg-pr-new bot commented Nov 12, 2024

Open in Stackblitz

More templates

@tanstack/angular-query-devtools-experimental

pnpm add https://pkg.pr.new/@tanstack/angular-query-devtools-experimental@8284

@tanstack/query-async-storage-persister

pnpm add https://pkg.pr.new/@tanstack/query-async-storage-persister@8284

@tanstack/angular-query-experimental

pnpm add https://pkg.pr.new/@tanstack/angular-query-experimental@8284

@tanstack/query-broadcast-client-experimental

pnpm add https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@8284

@tanstack/eslint-plugin-query

pnpm add https://pkg.pr.new/@tanstack/eslint-plugin-query@8284

@tanstack/query-core

pnpm add https://pkg.pr.new/@tanstack/query-core@8284

@tanstack/query-devtools

pnpm add https://pkg.pr.new/@tanstack/query-devtools@8284

@tanstack/query-persist-client-core

pnpm add https://pkg.pr.new/@tanstack/query-persist-client-core@8284

@tanstack/query-sync-storage-persister

pnpm add https://pkg.pr.new/@tanstack/query-sync-storage-persister@8284

@tanstack/react-query

pnpm add https://pkg.pr.new/@tanstack/react-query@8284

@tanstack/react-query-devtools

pnpm add https://pkg.pr.new/@tanstack/react-query-devtools@8284

@tanstack/react-query-next-experimental

pnpm add https://pkg.pr.new/@tanstack/react-query-next-experimental@8284

@tanstack/react-query-persist-client

pnpm add https://pkg.pr.new/@tanstack/react-query-persist-client@8284

@tanstack/solid-query

pnpm add https://pkg.pr.new/@tanstack/solid-query@8284

@tanstack/solid-query-devtools

pnpm add https://pkg.pr.new/@tanstack/solid-query-devtools@8284

@tanstack/solid-query-persist-client

pnpm add https://pkg.pr.new/@tanstack/solid-query-persist-client@8284

@tanstack/svelte-query

pnpm add https://pkg.pr.new/@tanstack/svelte-query@8284

@tanstack/svelte-query-devtools

pnpm add https://pkg.pr.new/@tanstack/svelte-query-devtools@8284

@tanstack/svelte-query-persist-client

pnpm add https://pkg.pr.new/@tanstack/svelte-query-persist-client@8284

@tanstack/vue-query

pnpm add https://pkg.pr.new/@tanstack/vue-query@8284

@tanstack/vue-query-devtools

pnpm add https://pkg.pr.new/@tanstack/vue-query-devtools@8284

commit: e98bab4

Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.00%. Comparing base (c9fcd2f) to head (e98bab4).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           main    #8284       +/-   ##
=========================================
+ Coverage      0   46.00%   +46.00%     
=========================================
  Files         0      200      +200     
  Lines         0     7526     +7526     
  Branches      0     1726     +1726     
=========================================
+ Hits          0     3462     +3462     
- Misses        0     3687     +3687     
- Partials      0      377      +377     
Components Coverage Δ
@tanstack/angular-query-devtools-experimental ∅ <ø> (∅)
@tanstack/angular-query-experimental 88.31% <100.00%> (∅)
@tanstack/eslint-plugin-query 88.32% <ø> (∅)
@tanstack/query-async-storage-persister 43.85% <ø> (∅)
@tanstack/query-broadcast-client-experimental ∅ <ø> (∅)
@tanstack/query-codemods 0.00% <ø> (∅)
@tanstack/query-core 93.20% <ø> (∅)
@tanstack/query-devtools 4.78% <ø> (∅)
@tanstack/query-persist-client-core 57.73% <ø> (∅)
@tanstack/query-sync-storage-persister 82.50% <ø> (∅)
@tanstack/react-query 95.54% <ø> (∅)
@tanstack/react-query-devtools 10.00% <ø> (∅)
@tanstack/react-query-next-experimental ∅ <ø> (∅)
@tanstack/react-query-persist-client 100.00% <ø> (∅)
@tanstack/solid-query 78.20% <ø> (∅)
@tanstack/solid-query-devtools ∅ <ø> (∅)
@tanstack/solid-query-persist-client 100.00% <ø> (∅)
@tanstack/svelte-query 87.33% <ø> (∅)
@tanstack/svelte-query-devtools ∅ <ø> (∅)
@tanstack/svelte-query-persist-client 100.00% <ø> (∅)
@tanstack/vue-query 71.45% <ø> (∅)
@tanstack/vue-query-devtools ∅ <ø> (∅)

@arnoud-dv arnoud-dv changed the title chore(angular-query): build with tsup refactor(angular-query): build with tsup Nov 13, 2024
@arnoud-dv arnoud-dv marked this pull request as ready for review November 14, 2024 11:51
@arnoud-dv arnoud-dv force-pushed the chore/build-angular-tsup branch from 9d7016c to e98bab4 Compare November 14, 2024 12:25
@arnoud-dv arnoud-dv changed the title refactor(angular-query): build with tsup refactor(angular-query): build with tsup and remove devtools component Nov 14, 2024
@arnoud-dv arnoud-dv merged commit 94891fd into TanStack:main Nov 14, 2024
8 checks passed
@arnoud-dv arnoud-dv deleted the chore/build-angular-tsup branch November 14, 2024 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant