Comparing version 1.10.2 to 2.0.0-alpha.1
@@ -1,4 +0,4 @@ | ||
import { a2 as CastAttribute, q as ModelFields } from './shared/pinia-orm.Bzthh6rU.js'; | ||
import { a2 as CastAttribute, q as ModelFields } from './shared/pinia-orm.eiCLbQIe.js'; | ||
import 'pinia'; | ||
import 'vue-demi'; | ||
import 'vue'; | ||
import '@pinia-orm/normalizr'; | ||
@@ -5,0 +5,0 @@ import '@/composables'; |
@@ -1,5 +0,5 @@ | ||
import { a3 as TypeDefault, aq as PropertyDecorator, ar as TypeOptions, as as UidOptions, M as Model, w as PrimaryKey, L as deleteModes, a2 as CastAttribute, am as Mutator } from './shared/pinia-orm.Bzthh6rU.js'; | ||
export { at as NanoidOptions } from './shared/pinia-orm.Bzthh6rU.js'; | ||
import { a3 as TypeDefault, aq as PropertyDecorator, ar as TypeOptions, as as UidOptions, M as Model, w as PrimaryKey, L as deleteModes, a2 as CastAttribute, am as Mutator } from './shared/pinia-orm.eiCLbQIe.js'; | ||
export { at as NanoidOptions } from './shared/pinia-orm.eiCLbQIe.js'; | ||
import 'pinia'; | ||
import 'vue-demi'; | ||
import 'vue'; | ||
import '@pinia-orm/normalizr'; | ||
@@ -6,0 +6,0 @@ import '@/composables'; |
@@ -1,4 +0,4 @@ | ||
import { M as Model, b as Collection } from './shared/pinia-orm.Bzthh6rU.js'; | ||
import { M as Model, b as Collection } from './shared/pinia-orm.eiCLbQIe.js'; | ||
import 'pinia'; | ||
import 'vue-demi'; | ||
import 'vue'; | ||
import '@pinia-orm/normalizr'; | ||
@@ -5,0 +5,0 @@ import '@/composables'; |
@@ -1,5 +0,5 @@ | ||
import { R as Repository, C as Constructor, M as Model, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.Bzthh6rU.js'; | ||
export { A as AfterHook, J as Attribute, B as BeforeHook, Q as BelongsTo, T as BelongsToMany, ap as CacheConfig, h as CacheConfigOptions, a2 as CastAttribute, a1 as Casts, b as Collection, k as CreatePiniaOrm, d as DataStore, D as DataStoreState, m as Database, K as Dictionary, ak as EagerLoad, al as EagerLoadConstraint, E as Element, a as Elements, a9 as GetElementType, af as Group, ah as GroupBy, ai as GroupByFields, G as GroupedCollection, U as HasMany, X as HasManyBy, Y as HasManyThrough, V as HasOne, z as InheritanceTypes, j as InstallOptions, a5 as Interpreter, I as Item, y as MetaValues, g as ModelConfigOptions, q as ModelFields, x as ModelOptions, t as ModelRegistries, v as ModelRegistry, s as ModelSchemas, Z as MorphMany, a0 as MorphOne, _ as MorphTo, $ as MorphToMany, am as Mutator, an as MutatorFunctions, ao as Mutators, a8 as NonMethodKeys, N as NormalizedData, ae as Order, ag as OrderBy, aj as OrderDirection, i as PiniaConfigOptions, e as PiniaOrmPlugin, P as PiniaOrmPluginContext, w as PrimaryKey, a6 as Query, O as Relation, o as Schema, n as Schemas, S as StoreActions, a4 as Type, a3 as TypeDefault, aa as UltimateKeys, a7 as Where, ad as WhereGroup, ab as WherePrimaryClosure, ac as WhereSecondaryClosure, H as WithKeys, l as createORM, f as definePiniaOrmPlugin, L as deleteModes, p as plugins, r as registerPlugins, c as useDataStore, u as useStoreActions } from './shared/pinia-orm.Bzthh6rU.js'; | ||
import { R as Repository, C as Constructor, M as Model, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.eiCLbQIe.js'; | ||
export { A as AfterHook, J as Attribute, B as BeforeHook, Q as BelongsTo, T as BelongsToMany, ap as CacheConfig, h as CacheConfigOptions, a2 as CastAttribute, a1 as Casts, b as Collection, k as CreatePiniaOrm, d as DataStore, D as DataStoreState, m as Database, K as Dictionary, ak as EagerLoad, al as EagerLoadConstraint, E as Element, a as Elements, a9 as GetElementType, af as Group, ah as GroupBy, ai as GroupByFields, G as GroupedCollection, U as HasMany, X as HasManyBy, Y as HasManyThrough, V as HasOne, z as InheritanceTypes, j as InstallOptions, a5 as Interpreter, I as Item, y as MetaValues, g as ModelConfigOptions, q as ModelFields, x as ModelOptions, t as ModelRegistries, v as ModelRegistry, s as ModelSchemas, Z as MorphMany, a0 as MorphOne, _ as MorphTo, $ as MorphToMany, am as Mutator, an as MutatorFunctions, ao as Mutators, a8 as NonMethodKeys, N as NormalizedData, ae as Order, ag as OrderBy, aj as OrderDirection, i as PiniaConfigOptions, e as PiniaOrmPlugin, P as PiniaOrmPluginContext, w as PrimaryKey, a6 as Query, O as Relation, o as Schema, n as Schemas, S as StoreActions, a4 as Type, a3 as TypeDefault, aa as UltimateKeys, a7 as Where, ad as WhereGroup, ab as WherePrimaryClosure, ac as WhereSecondaryClosure, H as WithKeys, l as createORM, f as definePiniaOrmPlugin, L as deleteModes, p as plugins, r as registerPlugins, c as useDataStore, u as useStoreActions } from './shared/pinia-orm.eiCLbQIe.js'; | ||
import { Pinia } from 'pinia'; | ||
import 'vue-demi'; | ||
import 'vue'; | ||
import '@pinia-orm/normalizr'; | ||
@@ -11,12 +11,2 @@ import '@/composables'; | ||
type ModelOrRepository<M extends typeof Model, R extends typeof Repository> = M | R; | ||
type ModelsOrRepositories<M extends typeof Model = any, R extends typeof Repository = any> = Record<string, ModelOrRepository<M, R>>; | ||
type MappedRepositories<MR extends ModelsOrRepositories> = { | ||
[K in keyof MR]: MR[K] extends typeof Model ? () => Repository<InstanceType<MR[K]>> : () => InstanceType<MR[K]>; | ||
}; | ||
/** | ||
* Map given models or repositories to the Vue Component. | ||
*/ | ||
declare function mapRepos<MR extends ModelsOrRepositories>(modelsOrRepositories: MR): MappedRepositories<MR>; | ||
declare const CONFIG_DEFAULTS: { | ||
@@ -41,2 +31,2 @@ model: { | ||
export { CONFIG_DEFAULTS, Constructor, FilledInstallOptions, type MappedRepositories, Model, type ModelOrRepository, type ModelsOrRepositories, Repository, config, mapRepos, useRepo }; | ||
export { CONFIG_DEFAULTS, Constructor, FilledInstallOptions, Model, Repository, config, useRepo }; |
@@ -1,4 +0,4 @@ | ||
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.Bzthh6rU.js'; | ||
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.js'; | ||
import 'pinia'; | ||
import 'vue-demi'; | ||
import 'vue'; | ||
import '@pinia-orm/normalizr'; | ||
@@ -5,0 +5,0 @@ import '@/composables'; |
@@ -1,4 +0,4 @@ | ||
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.Bzthh6rU.js'; | ||
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.js'; | ||
import 'pinia'; | ||
import 'vue-demi'; | ||
import 'vue'; | ||
import '@pinia-orm/normalizr'; | ||
@@ -5,0 +5,0 @@ import '@/composables'; |
import { V1Options } from 'uuid'; | ||
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.Bzthh6rU.js'; | ||
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.js'; | ||
import 'pinia'; | ||
import 'vue-demi'; | ||
import 'vue'; | ||
import '@pinia-orm/normalizr'; | ||
@@ -6,0 +6,0 @@ import '@/composables'; |
import { V4Options } from 'uuid'; | ||
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.Bzthh6rU.js'; | ||
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.js'; | ||
import 'pinia'; | ||
import 'vue-demi'; | ||
import 'vue'; | ||
import '@pinia-orm/normalizr'; | ||
@@ -6,0 +6,0 @@ import '@/composables'; |
{ | ||
"name": "pinia-orm", | ||
"version": "1.10.2", | ||
"version": "2.0.0-alpha.1", | ||
"description": "The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store.", | ||
@@ -46,7 +46,6 @@ "keywords": [ | ||
"peerDependencies": { | ||
"pinia": "^2.1.7" | ||
"pinia": "^3.0.1" | ||
}, | ||
"dependencies": { | ||
"vue-demi": "^0.14.10", | ||
"@pinia-orm/normalizr": "1.10.2" | ||
"@pinia-orm/normalizr": "2.0.0-alpha.1" | ||
}, | ||
@@ -71,4 +70,4 @@ "devDependencies": { | ||
"mkdist": "^2.1.0", | ||
"nanoid": "4.0.2", | ||
"pinia": "^2.1.7", | ||
"nanoid": "^5.1.0", | ||
"pinia": "^3.0.1", | ||
"prettier": "^3.3.2", | ||
@@ -83,4 +82,3 @@ "size-limit": "^11.1.4", | ||
"vitest": "^3.0.5", | ||
"vue": "^3.4.31", | ||
"vue2": "npm:vue@^2.7.3" | ||
"vue": "^3.5.13" | ||
}, | ||
@@ -119,12 +117,10 @@ "size-limit": [ | ||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --commit-path . -l pinia-orm -r 1", | ||
"coverage": "vue-demi-switch 3 && vitest --run --coverage", | ||
"coverage": "vitest --run --coverage", | ||
"size": "size-limit", | ||
"lint": "eslint . --cache", | ||
"lint:fix": "eslint . --cache --fix", | ||
"test:ui": "vue-demi-switch 3 && vitest --ui --api 9527", | ||
"test:watch": "vue-demi-switch 3 && vitest --watch", | ||
"test:2": "vue-demi-switch 2 vue2 && vitest --run", | ||
"test:3": "vue-demi-switch 3 && vitest --run", | ||
"test": "pnpm run test:3" | ||
"test:ui": "vitest --ui --api 9527", | ||
"test:watch": "vitest --watch", | ||
"test": "vitest --run" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2
29
498975
50
11173
1
+ Added@pinia-orm/normalizr@2.0.0-alpha.1(transitive)
+ Added@vue/devtools-api@7.7.2(transitive)
+ Added@vue/devtools-kit@7.7.2(transitive)
+ Added@vue/devtools-shared@7.7.2(transitive)
+ Addedbirpc@0.2.19(transitive)
+ Addedcopy-anything@3.0.5(transitive)
+ Addedhookable@5.5.3(transitive)
+ Addedis-what@4.1.16(transitive)
+ Addedmitt@3.0.1(transitive)
+ Addedperfect-debounce@1.0.0(transitive)
+ Addedpinia@3.0.1(transitive)
+ Addedrfdc@1.4.1(transitive)
+ Addedspeakingurl@14.0.1(transitive)
+ Addedsuperjson@2.2.2(transitive)
- Removedvue-demi@^0.14.10
- Removed@pinia-orm/normalizr@1.10.2(transitive)
- Removed@vue/devtools-api@6.6.4(transitive)
- Removedpinia@2.3.1(transitive)
- Removedvue-demi@0.14.10(transitive)