couchdb-web-node-plugin 2.0.834 → 2.0.835

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "couchdb-web-node-plugin",
3
- "version": "2.0.834",
3
+ "version": "2.0.835",
4
4
  "description": "A couchdb server, model instance conflict handler, rest api, authentication, session management, schema validator and model relation guarantee for webNode.",
5
5
  "keywords": [
6
6
  "api",
@@ -82,7 +82,7 @@
82
82
  "@types/webpack-env": "^1.18.8",
83
83
  "@typescript-eslint/eslint-plugin": "^8.58.0",
84
84
  "@typescript-eslint/parser": "^8.58.0",
85
- "clientnode": "^4.0.1369",
85
+ "clientnode": "^4.0.1370",
86
86
  "documentation-website": "^1.0.401",
87
87
  "eslint": "^10.1.0",
88
88
  "eslint-config-google": "^0.14.0",
@@ -96,7 +96,7 @@
96
96
  "pouchdb-adapter-memory": "^9.0.0",
97
97
  "rimraf": "^6.1.3",
98
98
  "typescript-eslint": "^8.58.0",
99
- "web-node": "^1.0.577",
99
+ "web-node": "^1.0.578",
100
100
  "weboptimizer": "^3.0.16"
101
101
  },
102
102
  "peerDependencies": {
@@ -275,7 +275,7 @@
275
275
  "timeout": false
276
276
  },
277
277
  "updateMaterializedViewsChangesStream": {
278
- "include_docs": true,
278
+ "include_docs": false,
279
279
  "live": true,
280
280
  "return_docs": false,
281
281
  "since": "now",
@@ -479,6 +479,7 @@
479
479
  "revisions": "_revisions",
480
480
  "revisionsInformation": "_revs_info",
481
481
  "updateStrategy": "_updateStrategy",
482
+ "ignoreIfNoOldDocument": "_ignoreIfNoOldDocument",
482
483
  "type": "-type",
483
484
  "update": {
484
485
  "execution": "_updateExecution",
package/type.d.ts CHANGED
@@ -162,13 +162,16 @@ export type Model<Type extends object | undefined = object, AttachmentType exten
162
162
  export type Models<Type extends object = object, AttachmentType extends Attachment = Attachment, AdditionalDefinition extends object = object, AdditionalPropertiesType = unknown> = Mapping<Model<Type, AttachmentType, AdditionalDefinition, AdditionalPropertiesType>>;
163
163
  export type UpdateStrategy = 'fillUp' | 'incremental' | 'migrate' | 'replace';
164
164
  export type DocumentContent = Array<DocumentContent> | PlainObject | Primitive;
165
- export interface DocumentStrategyMeta {
165
+ export interface DocumentUpdateStrategyMeta {
166
166
  _updateStrategy?: UpdateStrategy;
167
167
  }
168
+ export interface DocumentIgnoreIfNoOldDocumentMeta {
169
+ ignoreIfNoOldDocument: boolean;
170
+ }
168
171
  export interface DocumentTypeMeta {
169
172
  '-type': string;
170
173
  }
171
- export type BaseDocument = Omit<ChangesMeta, '_attachments'> & Omit<DocumentGetMeta, '_attachments'> & DocumentIDMeta & DocumentRevisionIDMeta & DocumentStrategyMeta & DocumentTypeMeta & {
174
+ export type BaseDocument = Omit<ChangesMeta, '_attachments'> & Omit<DocumentGetMeta, '_attachments'> & DocumentIDMeta & DocumentRevisionIDMeta & DocumentUpdateStrategyMeta & DocumentIgnoreIfNoOldDocumentMeta & DocumentTypeMeta & {
172
175
  _attachments?: Attachments | null;
173
176
  };
174
177
  export type FullDocument<Type extends object = object, AdditionalPropertyTypes = unknown> = BaseDocument & Document<Type> & Mapping<AdditionalPropertyTypes>;
@@ -186,6 +189,7 @@ export interface SpecialPropertyNames {
186
189
  revisions: '_revisions';
187
190
  revisionsInformation: '_revs_info';
188
191
  updateStrategy: '_updateStrategy';
192
+ ignoreIfNoOldDocument: '_ignoreIfNoOldDocument';
189
193
  type: '-type';
190
194
  constraint: {
191
195
  execution: '_constraintExecutions';
@@ -480,6 +484,7 @@ export interface CommonScope<ObjectType extends object, Type, AttachmentType ext
480
484
  parentNames: Array<string>;
481
485
  pathDescription: string;
482
486
  updateStrategy: UpdateStrategy;
487
+ ignoreIfNoOldDocument: boolean;
483
488
  }
484
489
  export interface PropertyScope<ObjectType extends object, Type, PropertyType, AttachmentType extends Attachment, AdditionalDefinition extends object, AdditionalPropertiesType> extends CommonScope<ObjectType, PropertyType, AttachmentType, AdditionalDefinition, AdditionalPropertiesType> {
485
490
  name: string;