Compare commits

...

2 Commits

Author SHA1 Message Date
Nikita Dezzpil Orlov
14a46a71b3 chore(release): 1.3.1 2021-10-05 14:31:47 +03:00
Nikita Dezzpil Orlov
ead279ca5d fix: обновил API типов 2021-10-05 14:31:38 +03:00
4 changed files with 13 additions and 6 deletions

View File

@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [1.3.1](https://git.archive.systems/Dezzpil/ivanovna.orm/compare/v1.3.0...v1.3.1) (2021-10-05)
### Bug Fixes
* обновил API типов ([ead279c](https://git.archive.systems/Dezzpil/ivanovna.orm/commit/ead279ca5dbcc391aa30b224195295a4d1f81684))
## [1.3.0](https://git.archive.systems/Dezzpil/ivanovna.orm/compare/v1.2.0...v1.3.0) (2021-10-05)

6
orm.d.ts vendored
View File

@ -66,6 +66,7 @@ export declare abstract class Repo<T extends Entity<any>> {
protected _entity: T;
protected _limit: number;
protected _offset: number;
private _transformer;
/**
* Возвращает объект соотв. сущности, например new App()
*/
@ -74,9 +75,8 @@ export declare abstract class Repo<T extends Entity<any>> {
* Возвращает название коллекции/таблицы/... хранящей записи соотв. сущностей
*/
abstract Name(): string;
_transformer: (object: any) => any;
constructor(storage: Storage_2);
resetTransformer(): void;
constructor(storage: Storage_2, transformer?: (obj: any) => any);
setTransformer(transformer?: (obj: any) => any): this;
get storage(): Storage_2;
save(entity: T): Promise<this>;
findById(id: string): Promise<T | null>;

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "ivna-orm",
"version": "1.3.0",
"version": "1.3.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "ivna-orm",
"version": "1.3.0",
"version": "1.3.1",
"license": "ISC",
"devDependencies": {
"@jest/test-sequencer": "^27.2.3",

View File

@ -1,6 +1,6 @@
{
"name": "ivna-orm",
"version": "1.3.0",
"version": "1.3.1",
"description": "Mini ORM for convenience",
"main": "dist/index.js",
"files": [