@jdanino/inertiajs-tables-laravel-query-builder 2.2.0 → 3.0.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.
package/README.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Inertia.js Tables for Laravel Query Builder
|
|
2
2
|
|
|
3
|
+
This package provides a set of components to build Inertia.js tables using [Spatie's Laravel Query Builder](https://github.com/spatie/laravel-query-builder).
|
|
4
|
+
|
|
5
|
+
## Version Compatibility
|
|
6
|
+
|
|
7
|
+
| Package Version | Inertia.js Version | Laravel Version |
|
|
8
|
+
|-----------------|-------------------|-----------------|
|
|
9
|
+
| 2.x | 0.x | 8.x, 9.x, 10.x |
|
|
10
|
+
| 3.x | 1.x, 2.x | 8.x, 9.x, 10.x |
|
|
11
|
+
|
|
12
|
+
## Upgrading from v2.x to v3.x
|
|
13
|
+
|
|
14
|
+
Version 3.x of this package supports Inertia.js 2.0. If you're upgrading from v2.x, you'll need to:
|
|
15
|
+
|
|
16
|
+
1. Update your dependencies:
|
|
17
|
+
```bash
|
|
18
|
+
npm remove @inertiajs/inertia @inertiajs/inertia-vue3 @inertiajs/progress
|
|
19
|
+
npm install @inertiajs/vue3
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
2. Update your imports:
|
|
23
|
+
- Replace `@inertiajs/inertia-vue3` with `@inertiajs/vue3`
|
|
24
|
+
- Replace `@inertiajs/inertia` with `@inertiajs/vue3`
|
|
25
|
+
- Replace `@inertiajs/progress` with the progress module from `@inertiajs/vue3`
|
|
26
|
+
|
|
27
|
+
3. Update your Inertia setup:
|
|
28
|
+
- The `setup` function now receives `App` instead of `app`
|
|
29
|
+
- Use the `router` and `usePage()` instead of `$inertia` and `$inertia.page`
|
|
30
|
+
- Update event listeners from `inertia:success` to `success`
|
|
31
|
+
|
|
32
|
+
For more details on upgrading to Inertia.js 2.0, see the [official upgrade guide](https://inertiajs.com/upgrade-guide).
|
|
33
|
+
|
|
34
|
+
# Inertia.js Tables for Laravel Query Builder
|
|
35
|
+
|
|
3
36
|
[](https://npmjs.com/package/@protonemedia/inertiajs-tables-laravel-query-builder)
|
|
4
37
|
[](https://www.npmjs.com/package/@protonemedia/inertiajs-tables-laravel-query-builder)
|
|
5
38
|
[](https://packagist.org/packages/protonemedia/inertiajs-tables-laravel-query-builder)
|