Skip to content

Commit

Permalink
Merge branch 'next' into feat/fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd authored Nov 16, 2022
2 parents fe4ac12 + 161173c commit 3798c41
Show file tree
Hide file tree
Showing 15 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {random} from '@alwatr/math';
import {AlwatrStorage} from '@alwatr/storage';
import {AlwatrStorage} from '@alwatr/storage-engine';

import type {DocumentObject} from '@alwatr/storage';
import type {DocumentObject} from '@alwatr/storage-engine';

interface User extends DocumentObject {
fname: string;
Expand Down
4 changes: 2 additions & 2 deletions demo/storage/index.ts → demo/storage-engine/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {AlwatrStorage} from '@alwatr/storage';
import {AlwatrStorage} from '@alwatr/storage-engine';

import type {DocumentObject} from '@alwatr/storage';
import type {DocumentObject} from '@alwatr/storage-engine';

interface User extends DocumentObject {
fname: string;
Expand Down
2 changes: 1 addition & 1 deletion demo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{"path": "../packages/core/i18n"},
{"path": "../packages/core/math"},
{"path": "../packages/core/element"},
{"path": "../packages/core/storage"},
{"path": "../packages/core/storage-engine"},
{"path": "../packages/core/token"}
],
"exclude": ["*.d.ts", "node_modules"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

# [0.21.0](https://github.com/AliMD/alwatr/compare/v0.20.0...v0.21.0) (2022-11-13)

**Note:** Version bump only for package @alwatr/storage
**Note:** Version bump only for package @alwatr/storage-engine

# [0.20.0](https://github.com/AliMD/alwatr/compare/v0.19.0...v0.20.0) (2022-11-05)

Expand All @@ -22,7 +22,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

# [0.18.0](https://github.com/AliMD/alwatr/compare/v0.17.0...v0.18.0) (2022-10-22)

**Note:** Version bump only for package @alwatr/storage
**Note:** Version bump only for package @alwatr/storage-engine

# [0.17.0](https://github.com/AliMD/alwatr/compare/v0.16.1...v0.17.0) (2022-10-21)

Expand Down Expand Up @@ -57,11 +57,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

# [0.15.0](https://github.com/AliMD/alwatr/compare/v0.14.0...v0.15.0) (2022-09-01)

**Note:** Version bump only for package @alwatr/storage
**Note:** Version bump only for package @alwatr/storage-engine

# [0.14.0](https://github.com/AliMD/alwatr/compare/v0.13.0...v0.14.0) (2022-08-19)

**Note:** Version bump only for package @alwatr/storage
**Note:** Version bump only for package @alwatr/storage-engine

# [0.13.0](https://github.com/AliMD/alwatr/compare/v0.12.0...v0.13.0) (2022-08-06)

Expand All @@ -79,4 +79,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

# [0.12.0](https://github.com/AliMD/alwatr/compare/v0.11.0...v0.12.0) (2022-07-22)

**Note:** Version bump only for package @alwatr/storage
**Note:** Version bump only for package @alwatr/storage-engine
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Alwatr Storage - `@alwatr/storage`
# Alwatr Storage Engine - `@alwatr/storage-engine`

Elegant micro in-memory json-like storage with disk backed, Fastest NoSQL Database written in tiny TypeScript ES module.

## Example usage

```ts
import {AlwatrStorage} from '@alwatr/storage';
import {AlwatrStorage} from '@alwatr/storage-engine';

import type {DocumentObject} from '@alwatr/storage';
import type {DocumentObject} from '@alwatr/storage-engine';

interface User extends DocumentObject {
fname: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@alwatr/storage",
"name": "@alwatr/storage-engine",
"version": "0.21.0",
"description": "Elegant micro in-memory json-like storage with disk backed, Faster NoSQL Database written in tiny TypeScript ES module.",
"keywords": [
Expand Down Expand Up @@ -29,9 +29,9 @@
"repository": {
"type": "git",
"url": "https://github.com/AliMD/alwatr",
"directory": "package/storage"
"directory": "packages/core/storage-engine"
},
"homepage": "https://github.com/AliMD/alwatr/tree/main/package/storage#readme",
"homepage": "https://github.com/AliMD/alwatr/tree/main/packages/core/storage-engine#readme",
"bugs": {
"url": "https://github.com/AliMD/alwatr/issues"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type {AlwatrStorageConfig, AlwatrStorageProviderConfig, DocumentObject} f
* Example:
*
* ```ts
* import {AlwatrStorageProvider} from '@alwatr/storage';
* import {AlwatrStorageProvider} from '@alwatr/storage-engine';
* const storageList = new AlwatrStorageProvider();
* // ...
* const user = (await storageList.get('user-list')).get('userId1');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {DocumentObject, DataStorage, AlwatrStorageConfig} from './type.js';
export {DocumentObject, DataStorage, AlwatrStorageConfig as Config};

alwatrRegisteredList.push({
name: '@alwatr/storage',
name: '@alwatr/storage-engine',
version: '{{ALWATR_VERSION}}',
});

Expand All @@ -21,9 +21,9 @@ alwatrRegisteredList.push({
* Example:
*
* ```ts
* import {AlwatrStorage} from '@alwatr/storage';
* import {AlwatrStorage} from '@alwatr/storage-engine';
*
* import type {DocumentObject} from '@alwatr/storage';
* import type {DocumentObject} from '@alwatr/storage-engine';
*
* interface User extends DocumentObject {
* fname: string;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/service/storage-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"dependencies": {
"@alwatr/logger": "^0.21.0",
"@alwatr/nano-server": "^0.21.0",
"@alwatr/storage": "^0.21.0"
"@alwatr/storage-engine": "^0.21.0"
},
"devDependencies": {
"@types/node": "^18.11.9",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {AlwatrStorageProvider} from '@alwatr/storage/provider.js';
import {AlwatrStorageProvider} from '@alwatr/storage-engine/provider.js';

import {config} from './config.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/service/storage-server/src/route/patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {nanoServer} from '../lib/nano-server.js';
import {storageProvider} from '../lib/storage-provider.js';

import type {AlwatrConnection} from '@alwatr/nano-server';
import type {DocumentObject} from '@alwatr/storage';
import type {DocumentObject} from '@alwatr/storage-engine';

nanoServer.route('PATCH', 'all', updateDocument);

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
{"path": "./packages/core/i18n"},
{"path": "./packages/core/math"},
{"path": "./packages/core/nano-server"},
{"path": "./packages/core/storage"},
{"path": "./packages/core/storage-engine"},
{"path": "./packages/core/token"},
{"path": "./packages/core/element"},
{"path": "./packages/lab/zx-example"},
Expand Down

0 comments on commit 3798c41

Please sign in to comment.