Skip to content

Commit

Permalink
build: prepare release rc 40
Browse files Browse the repository at this point in the history
  • Loading branch information
phortx committed Jun 23, 2020
1 parent 02f346e commit 1c551f9
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 44 deletions.
7 changes: 5 additions & 2 deletions dist/orm/model.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@ export default class Model {
*/
static isConnection(field: Field): boolean;
/**
* Adds $isPersisted and other meta fields to the model by overwriting the fields() method.
* @todo is this a good way to add fields?
* Adds $isPersisted and other meta fields to the model.
*
* TODO: This feels rather hacky currently and may break anytime the internal structure of
* the core changes. Maybe in the future there will be a feature in the core that allows to add
* those meta fields by plugins.
* @param {Model} model
*/
static augment(model: Model): void;
Expand Down
16 changes: 8 additions & 8 deletions dist/vuex-orm-graphql.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -7940,17 +7940,17 @@ var Model = /** @class */ (function () {
field instanceof context.components.MorphOne);
};
/**
* Adds $isPersisted and other meta fields to the model by overwriting the fields() method.
* @todo is this a good way to add fields?
* Adds $isPersisted and other meta fields to the model.
*
* TODO: This feels rather hacky currently and may break anytime the internal structure of
* the core changes. Maybe in the future there will be a feature in the core that allows to add
* those meta fields by plugins.
* @param {Model} model
*/
Model.augment = function (model) {
var originalFieldGenerator = model.baseModel.fields.bind(model.baseModel);
model.baseModel.fields = function () {
var originalFields = originalFieldGenerator();
originalFields["$isPersisted"] = model.baseModel.boolean(false);
return originalFields;
};
var baseModel = model.baseModel;
baseModel.getFields();
baseModel.cachedFields[baseModel.entity]["$isPersisted"] = baseModel.boolean(false);
};
/**
* Returns the related model for a relation.
Expand Down
16 changes: 8 additions & 8 deletions dist/vuex-orm-graphql.esm-bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -7824,17 +7824,17 @@ class Model {
field instanceof context.components.MorphOne);
}
/**
* Adds $isPersisted and other meta fields to the model by overwriting the fields() method.
* @todo is this a good way to add fields?
* Adds $isPersisted and other meta fields to the model.
*
* TODO: This feels rather hacky currently and may break anytime the internal structure of
* the core changes. Maybe in the future there will be a feature in the core that allows to add
* those meta fields by plugins.
* @param {Model} model
*/
static augment(model) {
const originalFieldGenerator = model.baseModel.fields.bind(model.baseModel);
model.baseModel.fields = () => {
const originalFields = originalFieldGenerator();
originalFields["$isPersisted"] = model.baseModel.boolean(false);
return originalFields;
};
let baseModel = model.baseModel;
baseModel.getFields();
baseModel.cachedFields[baseModel.entity]["$isPersisted"] = baseModel.boolean(false);
}
/**
* Returns the related model for a relation.
Expand Down
16 changes: 8 additions & 8 deletions dist/vuex-orm-graphql.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -7824,17 +7824,17 @@ class Model {
field instanceof context.components.MorphOne);
}
/**
* Adds $isPersisted and other meta fields to the model by overwriting the fields() method.
* @todo is this a good way to add fields?
* Adds $isPersisted and other meta fields to the model.
*
* TODO: This feels rather hacky currently and may break anytime the internal structure of
* the core changes. Maybe in the future there will be a feature in the core that allows to add
* those meta fields by plugins.
* @param {Model} model
*/
static augment(model) {
const originalFieldGenerator = model.baseModel.fields.bind(model.baseModel);
model.baseModel.fields = () => {
const originalFields = originalFieldGenerator();
originalFields["$isPersisted"] = model.baseModel.boolean(false);
return originalFields;
};
let baseModel = model.baseModel;
baseModel.getFields();
baseModel.cachedFields[baseModel.entity]["$isPersisted"] = baseModel.boolean(false);
}
/**
* Returns the related model for a relation.
Expand Down
16 changes: 8 additions & 8 deletions dist/vuex-orm-graphql.esm.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -7824,17 +7824,17 @@ class Model {
field instanceof context.components.MorphOne);
}
/**
* Adds $isPersisted and other meta fields to the model by overwriting the fields() method.
* @todo is this a good way to add fields?
* Adds $isPersisted and other meta fields to the model.
*
* TODO: This feels rather hacky currently and may break anytime the internal structure of
* the core changes. Maybe in the future there will be a feature in the core that allows to add
* those meta fields by plugins.
* @param {Model} model
*/
static augment(model) {
const originalFieldGenerator = model.baseModel.fields.bind(model.baseModel);
model.baseModel.fields = () => {
const originalFields = originalFieldGenerator();
originalFields["$isPersisted"] = model.baseModel.boolean(false);
return originalFields;
};
let baseModel = model.baseModel;
baseModel.getFields();
baseModel.cachedFields[baseModel.entity]["$isPersisted"] = baseModel.boolean(false);
}
/**
* Returns the related model for a relation.
Expand Down
16 changes: 8 additions & 8 deletions dist/vuex-orm-graphql.global.js
Original file line number Diff line number Diff line change
Expand Up @@ -7939,17 +7939,17 @@ var VuexORMGraphQLPlugin = (function (exports) {
field instanceof context.components.MorphOne);
};
/**
* Adds $isPersisted and other meta fields to the model by overwriting the fields() method.
* @todo is this a good way to add fields?
* Adds $isPersisted and other meta fields to the model.
*
* TODO: This feels rather hacky currently and may break anytime the internal structure of
* the core changes. Maybe in the future there will be a feature in the core that allows to add
* those meta fields by plugins.
* @param {Model} model
*/
Model.augment = function (model) {
var originalFieldGenerator = model.baseModel.fields.bind(model.baseModel);
model.baseModel.fields = function () {
var originalFields = originalFieldGenerator();
originalFields["$isPersisted"] = model.baseModel.boolean(false);
return originalFields;
};
var baseModel = model.baseModel;
baseModel.getFields();
baseModel.cachedFields[baseModel.entity]["$isPersisted"] = baseModel.boolean(false);
};
/**
* Returns the related model for a relation.
Expand Down
2 changes: 1 addition & 1 deletion dist/vuex-orm-graphql.global.prod.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vuex-orm/plugin-graphql",
"version": "1.0.0-rc.39",
"version": "1.0.0-rc.40",
"description": "Vuex-ORM persistence plugin to sync the store against a GraphQL API.",
"main": "dist/vuex-orm-graphql.cjs.js",
"browser": "dist/vuex-orm-graphql.esm.js",
Expand Down

0 comments on commit 1c551f9

Please sign in to comment.