Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
6561181
feat: integrated builder.infiniteQuery
Jun 19, 2025
9dc6fb1
refactor: removed logs
Jun 19, 2025
9e48081
fix: fixed getNextPageParam
Jun 25, 2025
b692353
deps: up rtk query version
Sep 16, 2025
6a8514e
feat: merged dev
Sep 16, 2025
345dcdc
feat: prepared patchEntityQueries and clearEntityQueries
Sep 21, 2025
b3eb919
feat: implemented raw patchEntityQueries and clearEntityQueries
Sep 21, 2025
01309d9
fix: fixed next page checking
Sep 24, 2025
cf2ac40
refactor: removed comments and logs
Sep 26, 2025
a6a8362
deps: upgraded deps, renamed endpoint
Oct 21, 2025
269521a
feat: update dependencies
ipakhomov Oct 28, 2025
44f5903
chore: use ts "moduleResolution": "bundler"
ipakhomov Oct 28, 2025
6d82f0c
chore: remove deprecated hooks
ipakhomov Oct 28, 2025
91962ad
refactor: remove deprecated utils
ipakhomov Oct 28, 2025
5c58c0b
refactor: update rtkq types imports
ipakhomov Oct 28, 2025
8556bc8
refactor: implemented review related fixes
Oct 30, 2025
bde22e3
refactor: moved functionality to util
Oct 30, 2025
e7ba706
chore: update package-lock
ipakhomov Nov 24, 2025
632318e
Merge pull request #26 from RonasIT/PRD-1499-infinite-scroll-test
ipakhomov Nov 24, 2025
1296570
chore: update from base branch
ipakhomov Nov 24, 2025
ffd765e
docs: update doc for new infinite query endpoint
ipakhomov Nov 24, 2025
a268411
docs: removed the duplicated sentence README.md
ekazankova Nov 24, 2025
90007ec
Merge pull request #29 from RonasIT/feat/v1
ekazankova Nov 24, 2025
b4b7713
ci: setup github workflows
ipakhomov Nov 24, 2025
6974267
docs: added contributing guide
ipakhomov Nov 24, 2025
9959b5f
fix(ci): include optional deps for installation
ipakhomov Nov 24, 2025
218e1c0
ci: switch to npm install from npm ci
ipakhomov Nov 24, 2025
1b43448
ci: update Node.js version to 24 and switch to npm ci for dependency …
ipakhomov Nov 24, 2025
15a6835
ci: update Node.js version to 22 and add optional dependencies for Ro…
ipakhomov Nov 24, 2025
4bed21a
Merge pull request #30 from RonasIT/feat/setup-ci
ipakhomov Nov 24, 2025
41ba52a
fix: adjusted types and deprecation notices
ipakhomov Nov 24, 2025
2d07532
chore: bump version to 1.0.0-alpha.2
ipakhomov Nov 24, 2025
b2c1f6a
Merge pull request #31 from RonasIT/fix/types-fixes
ipakhomov Nov 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release to NPM

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
registry-url: "https://registry.npmjs.org/"

- name: Install dependencies
run: npm ci

- name: Build package
run: npm run build --if-present

- name: Publish to NPM
run: npm run release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33 changes: 33 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Validate

on:
pull_request:
branches: [main, master, development]
push:
branches: [main, master, development]

jobs:
validate:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Run linting
run: npm run lint --if-present

- name: Run tests
run: npm test --if-present

- name: Run build
run: npm run build --if-present
58 changes: 58 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Contributing

This document provides guidelines for contributing to this project.

## Getting started

1. Fork or clone the repository
2. Install dependencies: `npm install`

## Development workflow

1. **Create a feature branch** from `main`
2. **Make your changes** following the [coding standards](#coding-standards)
3. **Test your changes** thoroughly
4. **Update documentation** if needed
5. **Run code checks**: `lint` and `test` (if available)
6. **Submit a pull request** with a clear description

## Coding standards

### Branch naming

Use descriptive branch names and follow [Conventional Branch](https://conventional-branch.github.io/) guidelines.

### Commit messages

Follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) format

### Code checks

Repository has pre-commit code style and correctness checks. You can run them manually using `lint` and `format` scripts.

## Releases

To create a new release:

1. **Bump the version**: Run `npm version {patch|minor|major}` to update the version number in `package.json` and create a Git commit and tag

- `patch`: Bug fixes (0.2.0 → 0.2.1)
- `minor`: New features (0.2.0 → 0.3.0)
- `major`: Breaking changes (0.2.0 → 1.0.0)

2. **Push changes**: Push the commit and tag to the repository:

```bash
git push && git push --tags
```

3. **Create GitHub release**: Go to the [GitHub Releases](../../releases) page and:

- Click "Create a new release"
- Select the tag created in step 1
- Add release notes describing the changes
- Click "Publish release"

4. **Automatic npm publication**: Once the GitHub release is published, the package will be automatically published to npm via GitHub Actions workflow.

> **Note**: Make sure you have the `NPM_TOKEN` secret configured in your repository settings for the npm publication to work.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ Generated entity APIs provide the following [endpoints](https://redux-toolkit.js

3. `search` - a query that requests `GET /{baseEndpoint}` to get entities list with pagination. Accepts request params described by `entitySearchRequestConstructor` and returns `entitySearchResponseConstructor` extending `PaginationRequest` and `PaginationResponse` respectively.

4. `searchInfinite` - this query behaves similar to `search`, but accumulates data from newly requested pages.
This query can be used with `useSearchInfiniteQuery` hook to implement infinite scrolling lists. It supports loading
data in both directions using `fetchNextPage` and `fetchPreviousPage` callbacks, and provides other useful props.
4. `searchPaginated` - this query behaves similar to `search`, but accumulates data from newly requested pages.
This query can be used with `useSearchPaginatedInfiniteQuery` hook to implement infinite scrolling lists. It supports loading data in both directions using `fetchNextPage` and `fetchPreviousPage` callbacks, and provides other useful props.

5. `update` - this mutation performs `PUT /{baseEndpoint}/{id}` request to update entity data.
Accepts `Partial` data of entity instance with mandatory `id`.
Expand Down
Loading