@partiarazem/core-logic 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +21 -0
  2. package/package.json +3 -3
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # @partiarazem/core-logic
2
+
3
+ Warstwa API, React Query hooks, typy i logika biznesowa.
4
+
5
+ Biblioteka tworzona przez [Partię Razem](https://partiarazem.pl/) — partię równości, demokracji i troski o klimat.
6
+
7
+ ## Instalacja
8
+
9
+ ```bash
10
+ pnpm add @partiarazem/core-logic
11
+ # lub
12
+ npm install @partiarazem/core-logic
13
+ ```
14
+
15
+ Wymaga `react` (peer dependency). Zawiera zależności m.in. od React Query, Axios.
16
+
17
+ ## Użycie
18
+
19
+ ```tsx
20
+ import { usePetitionsInfinite, apiClient } from '@partiarazem/core-logic';
21
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@partiarazem/core-logic",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
@@ -20,8 +20,8 @@
20
20
  "devDependencies": {
21
21
  "@types/react": "^19.1.9",
22
22
  "typescript": "^5.9.2",
23
- "@partiarazem/dev-eslint": "0.1.0",
24
- "@partiarazem/dev-prettier": "0.1.0"
23
+ "@partiarazem/dev-eslint": "0.2.0",
24
+ "@partiarazem/dev-prettier": "0.2.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": ">=19.0.0"