Replace prettier with oxfmt
The options and ignores have been ported to the `.oxfmtrc.json` file (oxfmt `printWidth` default is 100 characters, so preserving 80 for now). While the configuration with Prettier is the same, oxfmt seems to modify some things slightly differently, apparently due to the use of a pre-3.9 Prettier layout for union types that break onto their own line so we still end up with about 30 files changed.
Files with actual changes are:
- `.prettierignore`.`prettier.config.js`: Deleted. Replaced with `.oxfmtrc.json`
- `package.json`: `format` script changed to `oxfmt`. Added `oxfmt` and `svelte` as `devDependencies`; removed `prettier` and `prettier-plugin-svelte`.
- `pnpm-lock.yaml`: Lockfile update for the dependency changes above.
- `scripts/generate-labeler-config.ts`: Formats with oxfmt's `format()` API instead of Prettier's. It reads `.oxfmtrc.json` itself, because the API doesn't find config files on its own, and throws if formatting reports errors. Its output is identical to what Prettier produced.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* chore: replace eslint with oxlint
Migrates to oxlint as the replacement linter for eslint.
Keeps the existing ruleset, runs js plugins for non-native oxlint rules and the local no-restricted-syntax plugin
Svelte packages keep a slim ESLint config for the svelte/* rules, which need the component template.
React examples that use the query eslint plugin also still use eslint for now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore: use oxlint disable directives
ESLint no longer lints these files, so switch eslint-disable comments to
oxlint-disable and the @typescript-eslint/ prefix to typescript/. Remove
directives that oxlint reports as unused, and name the rule in the
cspell oxlint-enable comments, which oxlint does not match to a
rule-specific disable otherwise.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore: lint expectTypeOf with vitest valid-expect
Oxlint's native vitest/valid-expect only checks `expect` calls, so load
@vitest/eslint-plugin as a JS plugin for this rule to keep flagging
`expectTypeOf` calls without a matcher, and restore the directives for
the intentional ones.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* docs(*): add parameter and result property tables to reference function pages and an overview to overloaded ones
* docs(*): link to the base type's properties when a parameter or result type has no property table
* docs(framework/*/reference): regenerate reference docs
* docs(framework/*/reference): regenerate reference docs
* chore(scripts/generate-docs): restore the 'dirname' import that the merge dropped
* docs(framework/*/reference): regenerate reference docs
* docs(scripts/generate-docs): label overloads in the overview with their declared parameter and return types
* docs(framework/*/reference): regenerate reference docs
* docs(scripts/generate-docs): convert declared intersection types from the source so signatures keep their alias names
* docs(framework/*/reference): regenerate reference docs
* docs(scripts/generate-docs): reword a comment to avoid the unknown word 'inlines'
* docs(scripts/generate-docs): skip a parameter table on overloaded pages when its heading is missing
* chore(scripts/create-github-release): push only the release tag instead of every local tag
* chore(scripts/create-github-release): remove the comment on the release tag push
* ci(.github/workflows/autofix): run 'generate-docs' to keep reference docs current
* ci: apply automated fixes
* fix(scripts/generate-docs): build referenced packages and fail on TypeDoc conversion errors
* ci: apply automated fixes
* fix(package.json): build referenced packages as part of 'generate-docs'
* ci(.github/workflows/autofix): only generate reference docs on push
* ci(.github/workflows/autofix): skip runs started from its own commit
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* chore(scripts/generate-docs): inject 'redirect_from' into flat reference URLs
* docs(react-query, solid-query): add 'redirect_from' for URLs broken by the TypeDoc migration
* chore: tsup -> tsdown
* revert size-limit and fix the build instead
* fix angular and devtools build
* fix nextJs builds
* more solid related things
* fix: import order
'relativeLinkExists' builds the target path with 'path.resolve', which
uses the platform separator, but then matches it against '/examples/'
and rewrites it with a regex written in forward slashes.
On Windows the resolved path uses backslashes, so neither pattern
matches. Every documentation link that points at an example is looked up
as a markdown file under 'docs/framework/<name>/examples/' instead of a
directory under 'examples/<name>/', and 'pnpm test:docs' reports 27
broken links that are fine on CI.
Normalize the separators before the two comparisons. Node accepts
forward slashes on Windows, so the resolved path stays usable.
Co-authored-by: Yogesh Kumar <webdev1@futeservices.com>
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
* feat lit-query: add initial lit-query package
* remove internal docs from initial PR
* fix review issues
* align scripts with monorepo Nx targets and use workspace:* for query-core
* feat(lit-query): fix type inference and monorepo integration
- Fix createQueriesController tuple type inference with recursive types
- Add DataTag support to queryOptions
- Fix build config and vitest custom-condition resolution
- Fix example install scripts for standalone bootstrap
* fix(lit-query): polish package validation and examples
* ci: apply automated fixes
* lit-query: preserve provider handshake ordering in BaseController
* Update .changeset/lemon-memes-divide.md
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
* removing prettier config from adapter, so that global config from the monorepo is used
* removed the package local format scripts so formatting stays centralized at the monorepo root
* removing like other adapters keep build and test:build as separate targets
* Compared against the other adapters and removed the lit-query-only aliases/gates, keeping the standard Nx target names so root CI can pick them up consistently
* package:check has been removed. The CJS smoke check is still needed because lit-query publishes custom CJS output/types
* fix(lit-query): align lit examples and integration with monorepo conventions
* chore(lit-query): clean up stale package checks
* fix(lit-query): address review feedback for lit examples and lifecycle tests
* chore: fix lockfile
* fix: add customCondition
* docs(lit-query): add Lit docs and generated reference
* docs(lit-query): fix Lit docs review comment and align examples
---------
Co-authored-by: gauravchugh <gauravchugh@servicenow.com>
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
- Changed documentation generation script from JavaScript to TypeScript.
- Added new TypeScript script for publishing packages with configuration for different branches.
* feat(angular-query):
- Created isRestoring injection token and provider
- handled restoration phase in create-base-query.ts
- handled restoration phase in
* feat(angular-query): created package for experimental persistence support, and the withPersistQueryClient feature
* test(persistQuery): add tests for withPersistQueryClient
* docs(angular-query): add basic persister example
* fix(angular-query): synced angular versions in new package
* fix(angular-query): commit before ng update
* feat(angular-query): updated example to v18
* fix(angular-query): fixed project name to basic-persister
* feat(angular-query): updated example basic-persister to v19
* feat(angular-query): included back the persister package after angular migration
* feat(angular-query): migrate to provideEnvironmentInitializer
* fix(angular-query): fix eslint issues in inject-queries.ts
* Revert "feat(angular-query): migrate to provideEnvironmentInitializer"
This reverts commit af5b47b31511dd2db180abfd92f08541f29532d4.
* fix(angular-query): only track the isRestoring in the effect
* fix(angular-query): removed conditional _isRestoring
* ci: apply automated fixes
* fix(angular-query): used effect onCleanup instead of destroy ref
* Update examples/angular/basic-persister/.devcontainer/devcontainer.json
Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>
* Update examples/angular/basic-persister/package.json
Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>
* Update examples/angular/basic-persister/src/index.html
Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>
* Update examples/angular/basic-persister/tsconfig.json
Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>
* Update examples/angular/basic-persister/tsconfig.json
Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>
* Update examples/angular/basic-persister/tsconfig.json
Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>
* Update packages/angular-query-experimental/src/inject-is-restoring.ts
Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>
* fix(angular-query): fixed lock file
* fix(angular-query): aligned package.json versions
* added missing dep from basic-persister example
* Added a more complex example for persistence. This examples demonstrates how to selectively persist queries to different persisters.
* fix(angular-query) bumped versions to 5.62.4
* refactor(angular-query) refactored to implicit return
* fix(angular-query) bump angular persister package and examples version
* fix(angular-query) fixed eslint errors
* refactor(angular-query) set initial `isRestoring` to true to match the React adapter logic
* Revert "refactor(angular-query) set initial `isRestoring` to true to match the React adapter logic"
This reverts commit 235bbabebf.
* fix(angular-query) fixed formatting of JSDOC comment ruined by eslint
* update build configs
* zoneless unit tests
* replace deprecated injectQueryClient
* createBaseQuery is always run in injection context, remove inject(Injector)
* remove api extractor config
* update example dependencies
* comment out from publish script for now
* refactor(persist-query-client): simplify configuration by removing array structure for persistOptions
* refactor(angular-query-persist-client): removed experimental from package name and updated configurations
* fix example
* fix outdated comment
* exclude from preview for now
* mark package as private instead
* configure injectIsRestoring injector through options object
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>
* Revert "chore(paths): use customConditions to define internal imports (#8935)"
This reverts commit 8e0c6b7639.
* fix export
* refactor: make test:lib depend on compile again
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* fix(paths): use customConditions to define internal imports
* the rest of the changes
* publint and vitest fixes
* order matters!
thanks https://colinhacks.com/essays/live-types-typescript-monorepo
* upgrade publint to get customCondition support
added here: b34ea9433f
* remove dynamicAliases
* remove getViteAliases
* try without references?
* Revert "try without references?"
This reverts commit b18bc946e8.
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* chore: query-query, react-query and persist-core to composite setup
* fix: self contain packages by having shared configs as symlinks
* fix: add tsConfigPaths to vite config
so that tests can pick up the path aliases
* chore: set outDir, rootDir and baseUrl for all packages
* chore: make legacy tsconfig extend regular tsconfig
* fix: tsc --build
* feat: setup project references
* fix: legacy configs also need references
* fix: oops
* fix: tsup related builds
we need to turn off composite builds for tsup
* fix: set rootDir for tsup builds
so that it can include all files it needs
* fix: remove dependencies on ^build
we no longer need builds to run tests / type checks
* fix: add separate out dir for tsc
* fix: include root eslint config in globals
* refactor: create compile task to depend on
* fix: typo
* fix: dynamic alisases for vitest
* chore: try to fix knip
* fix: make compile a cacheable task
* chore: temporary disable tests against older TS versions
* fix: ts doesn't like string return types
* fix(vue-query-devtools): fix build
* fix: test types
* Revert "chore: temporary disable tests against older TS versions"
This reverts commit 10ef560eb5.
* fix: make legacy ts builds output to their own directory
* chore: remove test:types from examples as they need a build step
* chore: fix knip
* chore: remove test:types from all examples
* Revert "Revert "chore: temporary disable tests against older TS versions""
This reverts commit d6daded7da.
* fix: outputs for compile task
* chore: remove test:types from integrations
* Revert "Revert "Revert "chore: temporary disable tests against older TS versions"""
This reverts commit 79b4844785.
---------
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>