protoobject 1.1.0 → 1.1.2
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/CHANGELOG.md +10 -0
- package/README.md +4 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
# 1.1.2 / 2024-11-23
|
|
2
|
+
|
|
3
|
+
### :tada: Enhancements
|
|
4
|
+
- Updated dependencies: typescript
|
|
5
|
+
|
|
6
|
+
# 1.1.1 / 2024-11-19
|
|
7
|
+
|
|
8
|
+
### :tada: Enhancements
|
|
9
|
+
- Updated dependencies: @eslint/js, eslint, typescript-eslint
|
|
10
|
+
|
|
1
11
|
# 1.1.0 / 2024-11-15
|
|
2
12
|
|
|
3
13
|
### :tada: Enhancements
|
package/README.md
CHANGED
|
@@ -266,6 +266,8 @@ class User extends ProtoObject<User> {
|
|
|
266
266
|
|
|
267
267
|
### An example of the implementation of the SQL database base class
|
|
268
268
|
|
|
269
|
+
This is an example of creating a basic (abstract) class for working with an SQLite database. Below is an example of an heir of this class, which is a table entry.
|
|
270
|
+
|
|
269
271
|
```typescript
|
|
270
272
|
import { randomUUID } from "node:crypto";
|
|
271
273
|
import { DatabaseSync } from "node:sqlite";
|
|
@@ -409,6 +411,8 @@ export class BaseRecord<T extends BaseRecord<T>> extends ProtoObject<T> {
|
|
|
409
411
|
|
|
410
412
|
### An example of the implementation of an heir from the base class of the SQL database
|
|
411
413
|
|
|
414
|
+
An example of a simple implementation of a data class based on a base class.
|
|
415
|
+
|
|
412
416
|
```typescript
|
|
413
417
|
import { randomUUID } from "crypto";
|
|
414
418
|
import { StaticImplements } from "protoobject";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "protoobject",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "A universal class for creating any JSON objects and simple manipulations with them.",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
],
|
|
53
53
|
"homepage": "https://github.com/dudko-dev/protoobject",
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@eslint/js": "^9.
|
|
55
|
+
"@eslint/js": "^9.15.0",
|
|
56
56
|
"@types/node": "^22.4.1",
|
|
57
|
-
"eslint": "^9.
|
|
57
|
+
"eslint": "^9.15.0",
|
|
58
58
|
"nyc": "^17.1.0",
|
|
59
59
|
"prettier": "^3.3.3",
|
|
60
60
|
"tsx": "^4.19.2",
|
|
61
|
-
"typescript": "^5.
|
|
62
|
-
"typescript-eslint": "^8.
|
|
61
|
+
"typescript": "^5.7.2",
|
|
62
|
+
"typescript-eslint": "^8.15.0"
|
|
63
63
|
},
|
|
64
64
|
"engines": {},
|
|
65
65
|
"directorie": {
|