Skip to content

Commit

Permalink
Merge pull request #44 from ExWeiv/dev
Browse files Browse the repository at this point in the history
Version and Changelog Updates
  • Loading branch information
loeiks authored Feb 23, 2024
2 parents 3dc8dcc + 367bbec commit fa18231
Show file tree
Hide file tree
Showing 63 changed files with 171 additions and 164 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ In this file you can find what's changed in each version. (Versions with -dev, -

---

### 3.0.0 **(Includes Breaking Changes)**

- `consistentRead` replaced with `readConcern` and now it's using string based data that syncs with mongodb readConcern options.
- Added custom cache rules to control how MongoClient's cached when they are created.
- URI storing strategy changed and now all URIs stored as JSON in a single secret in secrets manager. (Update your secrets before you update to ^3.0.0)
- General TS changes and BUG fixes.

### 2.8.4

- Enabled module import of single-function imports. (TS Change)
Expand Down
4 changes: 2 additions & 2 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@exweiv/weiv-data",
"version": "2.8.4",
"version": "3.0.0",
"description": "Custom API Library for Wix sites to connect MongoDB. Designed to easily switch from wix-data APIs.",
"main": "./lib/index.js",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions app/src/Helpers/collection.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Collection, ObjectId, Document} from 'mongodb/mongodb';
import { Collection, ObjectId, Document, ReadConcernLevel } from 'mongodb/mongodb';

/**
* Prevents permission checks from running for the operation. Set uri to AdminURI. Defaults to undefined.
Expand All @@ -16,7 +16,7 @@ export type SuppressHooks = boolean;
* Set the read concern level of your operation. Defaults to local.
* @public
*/
export type ReadConcern = "local" | "majority" | "linearizable" | "available" | "snapshot";
export type ReadConcern = ReadConcernLevel;

/**
* When you want to get not just only members or admins id (member id in Wix) also visitors id enable this and system will create a data using wix-data and then it will use the _owner field to get the current user temp id.
Expand Down
28 changes: 14 additions & 14 deletions docs/classes/WeivDataAggregate.html

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions docs/classes/WeivDataFilter.html

Large diffs are not rendered by default.

54 changes: 27 additions & 27 deletions docs/classes/WeivDataQuery.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/bulkInsert.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/bulkRemove.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/bulkSave.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/bulkUpdate.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/findOne.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/flushCache.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/get.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getAndRemove.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getAndReplace.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getAndUpdate.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/idConverter.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/increment.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/insert.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/insertReference.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/isReferenced.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/multiply.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/native.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/pull.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/push.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/queryReferenced.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/remove.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/removeReference.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/replace.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/replaceReferences.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/save.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/truncate.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/update.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/interfaces/AggregateRunOptions.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/BulkInsertResult.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/HookContext.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/interfaces/IncludeObject.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/interfaces/WeivDataAggregateResult.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/interfaces/WeivDataBulkRemoveResult.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/interfaces/WeivDataBulkSaveResult.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/interfaces/WeivDataBulkUpdateResult.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/WeivDataOptions.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/WeivDataOptionsCache.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/interfaces/WeivDataQueryReferencedResult.html

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions docs/interfaces/WeivDataQueryResult.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/interfaces/WeivDataSaveResult.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/CacheSelections.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/CollectionID.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/EnableVisitorID.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/HookArgs.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/HookName.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/HooksResults.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/Item.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/ItemID.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/ItemIDs.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/Items.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/types/ReadConcern.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/ReferencedItem.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/ReferringItem.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/SuppressAuth.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/SuppressHooks.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/WeivDataQueryReferencedOptions.html

Large diffs are not rendered by default.

0 comments on commit fa18231

Please sign in to comment.