ag-grid-url-sync 0.2.4 → 0.4.1

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 (39) hide show
  1. package/README.md +395 -23
  2. package/dist/core/ag-grid-url-sync.d.ts +16 -1
  3. package/dist/core/ag-grid-url-sync.js +19 -41
  4. package/dist/core/ag-grid-url-sync.js.map +1 -1
  5. package/dist/core/grid-integration.js +5 -67
  6. package/dist/core/grid-integration.js.map +1 -1
  7. package/dist/core/index.d.ts +1 -0
  8. package/dist/core/index.js +1 -4
  9. package/dist/core/index.js.map +1 -1
  10. package/dist/core/serialization/formats.d.ts +29 -0
  11. package/dist/core/serialization/formats.js +68 -0
  12. package/dist/core/serialization/formats.js.map +1 -0
  13. package/dist/core/serialization/grouped.d.ts +36 -0
  14. package/dist/core/serialization/grouped.js +105 -0
  15. package/dist/core/serialization/grouped.js.map +1 -0
  16. package/dist/core/serialization/index.d.ts +7 -0
  17. package/dist/core/serialization/index.js +3 -0
  18. package/dist/core/serialization/index.js.map +1 -0
  19. package/dist/core/types.d.ts +75 -5
  20. package/dist/core/types.js +7 -115
  21. package/dist/core/types.js.map +1 -1
  22. package/dist/core/url-generator.js +44 -38
  23. package/dist/core/url-generator.js.map +1 -1
  24. package/dist/core/url-parser.js +8 -52
  25. package/dist/core/url-parser.js.map +1 -1
  26. package/dist/core/validation.d.ts +13 -2
  27. package/dist/core/validation.js +34 -72
  28. package/dist/core/validation.js.map +1 -1
  29. package/dist/core/view-storage.d.ts +63 -0
  30. package/dist/core/view-storage.js +112 -0
  31. package/dist/core/view-storage.js.map +1 -0
  32. package/dist/index.d.ts +3 -0
  33. package/dist/index.js +2 -5
  34. package/dist/index.js.map +1 -1
  35. package/dist/react/index.d.ts +1 -0
  36. package/dist/react/types.d.ts +108 -1
  37. package/dist/react/use-ag-grid-url-sync.js +440 -42
  38. package/dist/react/use-ag-grid-url-sync.js.map +1 -1
  39. package/package.json +101 -30
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ag-grid-url-sync",
3
- "version": "0.2.4",
3
+ "version": "0.4.1",
4
4
  "description": "AG Grid URL Sync - Synchronize AG Grid text filters with URL parameters",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -36,10 +36,25 @@
36
36
  "import": "./dist/core/grid-integration.js",
37
37
  "require": "./dist/core/grid-integration.js"
38
38
  },
39
+ "./view-storage": {
40
+ "types": "./dist/core/view-storage.d.ts",
41
+ "import": "./dist/core/view-storage.js",
42
+ "require": "./dist/core/view-storage.js"
43
+ },
39
44
  "./types": {
40
45
  "types": "./dist/core/types.d.ts",
41
46
  "import": "./dist/core/types.js",
42
47
  "require": "./dist/core/types.js"
48
+ },
49
+ "./serialization": {
50
+ "types": "./dist/core/serialization/index.d.ts",
51
+ "import": "./dist/core/serialization/index.js",
52
+ "require": "./dist/core/serialization/index.js"
53
+ },
54
+ "./serialization/formats": {
55
+ "types": "./dist/core/serialization/formats.d.ts",
56
+ "import": "./dist/core/serialization/formats.js",
57
+ "require": "./dist/core/serialization/formats.js"
43
58
  }
44
59
  },
45
60
  "typesVersions": {
@@ -62,8 +77,17 @@
62
77
  "grid-integration": [
63
78
  "dist/core/grid-integration.d.ts"
64
79
  ],
80
+ "view-storage": [
81
+ "dist/core/view-storage.d.ts"
82
+ ],
65
83
  "types": [
66
84
  "dist/core/types.d.ts"
85
+ ],
86
+ "serialization": [
87
+ "dist/core/serialization/index.d.ts"
88
+ ],
89
+ "serialization/formats": [
90
+ "dist/core/serialization/formats.d.ts"
67
91
  ]
68
92
  }
69
93
  },
@@ -74,10 +98,10 @@
74
98
  "test:watch": "vitest",
75
99
  "test:coverage": "vitest run --coverage",
76
100
  "clean": "rimraf dist",
77
- "compile": "tsc",
101
+ "compile": "tsc --removeComments && tsc --emitDeclarationOnly",
78
102
  "build": "npm run clean && npm run compile && npm run validate",
79
103
  "validate": "npm run size-check && npm run type-check",
80
- "size-check": "bundlesize",
104
+ "size-check": "size-limit",
81
105
  "type-check": "tsc --noEmit --strict",
82
106
  "ci": "npm run build && npm run check-exports && npm run lint && npm run test",
83
107
  "check-exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm",
@@ -85,7 +109,7 @@
85
109
  },
86
110
  "repository": {
87
111
  "type": "git",
88
- "url": "git+https://github.com/nearform/ag-grid-url-state-sync.git"
112
+ "url": "git+https://github.com/nearform/ag-grid-url-sync.git"
89
113
  },
90
114
  "keywords": [
91
115
  "ag-grid",
@@ -100,35 +124,39 @@
100
124
  "author": "NearForm",
101
125
  "license": "MIT",
102
126
  "bugs": {
103
- "url": "https://github.com/nearform/ag-grid-url-state-sync/issues"
127
+ "url": "https://github.com/nearform/ag-grid-url-sync/issues"
104
128
  },
105
129
  "files": [
106
130
  "dist"
107
131
  ],
108
- "homepage": "https://github.com/nearform/ag-grid-url-state-sync#readme",
132
+ "homepage": "https://github.com/nearform/ag-grid-url-sync#readme",
109
133
  "devDependencies": {
110
134
  "@arethetypeswrong/cli": "^0.18.2",
111
- "@commitlint/cli": "^19.8.1",
112
- "@commitlint/config-conventional": "^19.8.1",
113
- "@eslint/js": "^9.29.0",
135
+ "@commitlint/cli": "^21.2.2",
136
+ "@commitlint/config-conventional": "^21.2.2",
137
+ "@eslint/js": "^10.0.1",
138
+ "@size-limit/esbuild": "^14.0.0",
139
+ "@size-limit/file": "^14.0.0",
114
140
  "@testing-library/react": "^16.3.0",
115
- "@types/jsdom": "^21.1.7",
116
- "@types/react": "^18.0.0",
117
- "@vitest/coverage-v8": "^3.2.4",
118
- "ag-grid-community": "^34.0.0",
119
- "bundlesize": "^0.18.2",
120
- "eslint": "^9.29.0",
141
+ "@types/jsdom": "^30.0.0",
142
+ "@types/node": "^26.4.0",
143
+ "@types/react": "^19.2.1",
144
+ "@vitest/coverage-v8": "^5.0.1",
145
+ "ag-grid-community": "^36.1.0",
146
+ "eslint": "^10.9.0",
121
147
  "eslint-config-prettier": "^10.1.5",
122
148
  "eslint-plugin-prettier": "^5.5.0",
123
- "globals": "^16.2.0",
149
+ "globals": "^17.11.0",
124
150
  "husky": "^9.1.7",
125
- "jsdom": "^26.1.0",
126
- "lint-staged": "^16.1.2",
151
+ "jsdom": "^30.0.1",
152
+ "lint-staged": "^17.4.1",
127
153
  "prettier": "^3.6.0",
128
- "react": "^18.0.0",
154
+ "react": "^19.2.0",
155
+ "react-dom": "^19.2.0",
129
156
  "rimraf": "^6.0.1",
130
- "typescript": "^5.8.3",
131
- "vitest": "^3.2.4"
157
+ "size-limit": "^14.0.0",
158
+ "typescript": "^7.0.2",
159
+ "vitest": "^5.0.1"
132
160
  },
133
161
  "peerDependencies": {
134
162
  "ag-grid-community": ">=28.0.0",
@@ -142,34 +170,77 @@
142
170
  "lint-staged": {
143
171
  "*.{js,jsx,ts,tsx}": "eslint --cache --fix"
144
172
  },
145
- "bundlesize": [
173
+ "size-limit": [
146
174
  {
175
+ "name": "dist/index.js (bundled)",
147
176
  "path": "./dist/index.js",
148
- "maxSize": "5KB"
177
+ "limit": "5 KiB",
178
+ "gzip": true
179
+ },
180
+ {
181
+ "name": "dist/react/index.js (bundled, react external)",
182
+ "path": "./dist/react/index.js",
183
+ "limit": "8 KiB",
184
+ "gzip": true,
185
+ "ignore": [
186
+ "react"
187
+ ]
149
188
  },
150
189
  {
151
190
  "path": "./dist/core/ag-grid-url-sync.js",
152
- "maxSize": "4KB"
191
+ "limit": "4 KiB",
192
+ "gzip": true,
193
+ "disablePlugins": [
194
+ "@size-limit/esbuild"
195
+ ]
153
196
  },
154
197
  {
155
198
  "path": "./dist/core/validation.js",
156
- "maxSize": "2KB"
199
+ "limit": "2.5 KiB",
200
+ "gzip": true,
201
+ "disablePlugins": [
202
+ "@size-limit/esbuild"
203
+ ]
157
204
  },
158
205
  {
159
206
  "path": "./dist/core/url-parser.js",
160
- "maxSize": "3KB"
207
+ "limit": "3 KiB",
208
+ "gzip": true,
209
+ "disablePlugins": [
210
+ "@size-limit/esbuild"
211
+ ]
161
212
  },
162
213
  {
163
214
  "path": "./dist/core/url-generator.js",
164
- "maxSize": "2KB"
215
+ "limit": "2 KiB",
216
+ "gzip": true,
217
+ "disablePlugins": [
218
+ "@size-limit/esbuild"
219
+ ]
165
220
  },
166
221
  {
167
222
  "path": "./dist/core/grid-integration.js",
168
- "maxSize": "3KB"
223
+ "limit": "3 KiB",
224
+ "gzip": true,
225
+ "disablePlugins": [
226
+ "@size-limit/esbuild"
227
+ ]
169
228
  },
170
229
  {
171
- "path": "./dist/react/index.js",
172
- "maxSize": "7KB"
230
+ "path": "./dist/core/view-storage.js",
231
+ "limit": "1.5 KiB",
232
+ "gzip": true,
233
+ "disablePlugins": [
234
+ "@size-limit/esbuild"
235
+ ]
236
+ },
237
+ {
238
+ "path": "./dist/react/use-ag-grid-url-sync.js",
239
+ "limit": "4 KiB",
240
+ "gzip": true,
241
+ "disablePlugins": [
242
+ "@size-limit/esbuild"
243
+ ]
173
244
  }
174
245
  ]
175
246
  }