@pinia-orm/nuxt-edge 1.9.0-28583603.744fcaf

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022-present Gregor Becker
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,96 @@
1
+ [![Pinia ORM banner](./.github/assets/banner.png)](https://github.com/storm-tail/pinia-orm)
2
+
3
+ [![npm version][npm-version-src]][npm-version-href]
4
+ [![npm downloads][npm-downloads-src]][npm-downloads-href]
5
+ [![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]
6
+ [![Coverage][code-coverage-src]][code-coverage-href]
7
+ [![License][license-src]][license-href]
8
+
9
+ # Welcome to pinia-orm
10
+
11
+ > Intuitive, type safe and flexible ORM for Pinia based on [Vuex ORM Next](https://github.com/vuex-orm/vuex-orm-next)
12
+
13
+ - [✨  Release Notes](https://pinia-orm.codedredd.de/changelog)
14
+ - [📖  Documentation](https://pinia-orm.codedredd.de)
15
+ - [👾  Playground](https://pinia-orm-play.codedredd.de)
16
+
17
+ ## Migration from vuex-orm
18
+
19
+ You want to migrate from vuex to pinia and with it vuex-orm to pinia-orm but you don't know yet?
20
+ Well maybe this table will help you to decide. This comparison is just about facts and current state.
21
+
22
+ | Features | pinia-orm@v1.4.0 | @vuex-orm/core@0.36.4 | @vuex-orm/core@1.0.0-draft.16 |
23
+ |------------------------------------------------------------------------|------------------------------------------------------------| ----------------------------------------------------------------- | ------------------------------------------------------------------------- |
24
+ | Bundle Size (Min + GZIP) | [9.9 KB](https://bundlephobia.com/package/pinia-orm@1.4.0) | [16.7 KB](https://bundlephobia.com/package/@vuex-orm/core@0.36.4) | [12.6 KB](https://bundlephobia.com/package/@vuex-orm/core@1.0.0-draft.16) |
25
+ | Relations (hasMany, belongsTo, morphOne, hasManyBy, hasOne, morphTo) | ✅ | ✅ | ✅ |
26
+ | Relations (morphMany, belongsToMany, hasManyThrough) | ✅ | ✅ | ❌ |
27
+ | Relations (morphToMany, morphedByMany) | ❌ | ✅ | ❌ |
28
+ | Mutators | ✅ | ✅ | ❌ |
29
+ | Casts | ✅ | ❌ | ❌ |
30
+ | Decorators | ✅ | ❌ | ✅ |
31
+ | Single Table Inheritance | ✅ | ✅ | ❌ |
32
+ | Lifecycle Hooks | ✅ | ✅ | ❌ |
33
+ | Aggregates | ✅ | ✅ | ❌ |
34
+ | Query (orHas, doesntHave, orDoesntHave, whereHas, orWhereHas, groupBy) | ✅ | ❌ | ❌ |
35
+ | Collection Helpers | ✅ | (✅) can use pinia-orm helpers too | (✅) can use pinia-orm helpers too |
36
+ | Hidden Fields | ✅ | ❌ | ❌ |
37
+ | Metadata field | ✅ | ❌ | ❌ |
38
+ | Caching of queries with gc | ✅ | (✅) with plugin | ❌ |
39
+
40
+ If you decide to migrate then there are some breaking changes. A guide how to migrate will be written.
41
+ Small overview:
42
+
43
+ - Fields are by default `null`
44
+ - Renamed some functions aligning more with laravel naming
45
+ - Code is based on `vuex-orm-next` and not on `vuex-orm` !
46
+
47
+ ## Help me keep working on this project 💚
48
+
49
+ - [Become a Sponsor on GitHub](https://github.com/sponsors/codedredd)
50
+ - [One-time donation via PayPal](https://paypal.me/dredd1984)
51
+
52
+ <p align="center">
53
+ <a href="https://pinia-orm.codedredd.de/sponsorkit/sponsors.png">
54
+ <img src='https://pinia-orm.codedredd.de/sponsorkit/sponsors.svg'/>
55
+ </a>
56
+ </p>
57
+
58
+ ---
59
+
60
+ ## 💻 Development
61
+
62
+ - Clone this repository
63
+ - Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable` (use `npm i -g corepack` for Node.js < 16.10)
64
+ - Install dependencies using `pnpm install`
65
+ - Build normalizr package: `pnpm build`
66
+ - Run interactive tests using `cd packages/pinia-orm && pnpm test:ui`
67
+
68
+ ## Credits
69
+
70
+ - [Kia King Ishii](https://github.com/kiaking)
71
+ - [Cuebit](https://github.com/cuebit)
72
+ - [Posva](https://github.com/posva)
73
+
74
+ ## Related projects
75
+
76
+ - [Vuex ORM](https://github.com/vuex-orm/vuex-orm)
77
+ - [Vuex ORM Next](https://github.com/vuex-orm/vuex-orm-next)
78
+
79
+ ## License
80
+
81
+ Made with ❤️
82
+
83
+ Published under [MIT License](./LICENCE).
84
+
85
+ <!-- Badges -->
86
+
87
+ [npm-version-src]: https://img.shields.io/npm/v/pinia-orm/latest.svg
88
+ [code-coverage-src]: https://img.shields.io/codecov/c/github/CodeDredd/pinia-orm?logo=Codecov&logoColor=white&token=BYLAJJOOLS
89
+ [code-coverage-href]: https://app.codecov.io/gh/CodeDredd/pinia-orm
90
+ [npm-version-href]: https://npmjs.com/package/pinia-orm
91
+ [npm-downloads-src]: https://img.shields.io/npm/dm/pinia-orm.svg
92
+ [npm-downloads-href]: https://npmjs.com/package/pinia-orm
93
+ [github-actions-ci-src]: https://github.com/codedredd/pinia-orm/actions/workflows/ci.yml/badge.svg
94
+ [github-actions-ci-href]: https://github.com/codedredd/pinia-orm/actions?query=workflow%3Aci
95
+ [license-src]: https://img.shields.io/npm/l/pinia-orm.svg
96
+ [license-href]: https://npmjs.com/package/pinia-orm
@@ -0,0 +1,7 @@
1
+ module.exports = require("/home/runner/work/pinia-orm/pinia-orm/node_modules/.pnpm/jiti@1.19.3/node_modules/jiti/lib/index.js")(null, {
2
+ "esmResolve": true,
3
+ "interopDefault": true,
4
+ "alias": {
5
+ "@pinia-orm/nuxt": "/home/runner/work/pinia-orm/pinia-orm/packages/nuxt"
6
+ }
7
+ })("/home/runner/work/pinia-orm/pinia-orm/packages/nuxt/src/module.ts")
@@ -0,0 +1,2 @@
1
+ export * from "/home/runner/work/pinia-orm/pinia-orm/packages/nuxt/src/module";
2
+ export { default } from "/home/runner/work/pinia-orm/pinia-orm/packages/nuxt/src/module";
@@ -0,0 +1,12 @@
1
+ import jiti from "file:///home/runner/work/pinia-orm/pinia-orm/node_modules/.pnpm/jiti@1.19.3/node_modules/jiti/lib/index.js";
2
+
3
+ /** @type {import("/home/runner/work/pinia-orm/pinia-orm/packages/nuxt/src/module")} */
4
+ const _module = jiti(null, {
5
+ "esmResolve": true,
6
+ "interopDefault": true,
7
+ "alias": {
8
+ "@pinia-orm/nuxt": "/home/runner/work/pinia-orm/pinia-orm/packages/nuxt"
9
+ }
10
+ })("/home/runner/work/pinia-orm/pinia-orm/packages/nuxt/src/module.ts");
11
+
12
+ export default _module;
package/package.json ADDED
@@ -0,0 +1,74 @@
1
+ {
2
+ "name": "@pinia-orm/nuxt-edge",
3
+ "description": "Nuxt module for pinia-orm",
4
+ "version": "1.9.0-28583603.744fcaf",
5
+ "license": "MIT",
6
+ "author": {
7
+ "name": "Gregor Becker",
8
+ "email": "gregor@codedredd.de"
9
+ },
10
+ "funding": "https://github.com/sponsors/codedredd",
11
+ "keywords": [
12
+ "vue",
13
+ "pinia",
14
+ "pinia-plugin",
15
+ "pinia-orm",
16
+ "orm",
17
+ "nuxt"
18
+ ],
19
+ "exports": {
20
+ ".": {
21
+ "import": "./dist/module.mjs",
22
+ "require": "./dist/module.cjs"
23
+ }
24
+ },
25
+ "main": "./dist/module.cjs",
26
+ "types": "./dist/module.d.ts",
27
+ "files": [
28
+ "dist",
29
+ "LICENSE",
30
+ "README.md"
31
+ ],
32
+ "peerDependencies": {
33
+ "@pinia/nuxt": "^0.5.1"
34
+ },
35
+ "dependencies": {
36
+ "@nuxt/kit": "^3.11.2",
37
+ "pinia-orm": "npm:pinia-orm-edge@1.9.0-28583603.744fcaf"
38
+ },
39
+ "devDependencies": {
40
+ "@nuxt/devtools": "^1.2.0",
41
+ "@nuxt/eslint-config": "^0.3.10",
42
+ "@nuxt/module-builder": "^0.6.0",
43
+ "@nuxt/schema": "^3.11.2",
44
+ "@nuxtjs/eslint-config-typescript": "^12.1.0",
45
+ "@pinia/nuxt": "^0.5.1",
46
+ "@types/prettier": "^3.0.0",
47
+ "eslint": "^9.2.0",
48
+ "nuxt": "^3.11.2",
49
+ "pinia": "^2.1.7",
50
+ "prettier": "^3.2.5",
51
+ "std-env": "^3.7.0",
52
+ "typescript": "^5.4.5",
53
+ "vite": "^5.2.11",
54
+ "vue": "^3.4.26"
55
+ },
56
+ "repository": {
57
+ "type": "git",
58
+ "url": "git+https://github.com/CodeDredd/pinia-orm.git"
59
+ },
60
+ "bugs": {
61
+ "url": "https://github.com/CodeDredd/pinia-orm/issues"
62
+ },
63
+ "homepage": "https://github.com/CodeDredd/pinia-orm/tree/v2/packages/nuxt#readme",
64
+ "_name": "@pinia-orm/nuxt",
65
+ "scripts": {
66
+ "build": "nuxi build-module --stub . && nuxi build-module .",
67
+ "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --commit-path . -l @pinia-orm/nuxt -r 1",
68
+ "dev": "nuxi dev playground",
69
+ "dev:build": "nuxi build playground",
70
+ "lint": "nuxi build-module --stub . && nuxi prepare playground && eslint . --cache",
71
+ "lint:fix": "eslint . --cache --fix",
72
+ "dev:prepare": "nuxi build-module --stub . && nuxi prepare playground"
73
+ }
74
+ }