Commit graph

67 commits

Author SHA1 Message Date
bf89dc00fe
Add model manager extension type.
All checks were successful
/ test (push) Successful in 40s
2025-06-29 16:41:14 +02:00
f238499f06
Improve jsdoc.
All checks were successful
/ test (push) Successful in 52s
2025-06-29 16:06:27 +02:00
d296658f64
Add model builder.
All checks were successful
/ test (push) Successful in 57s
2025-06-29 15:59:52 +02:00
e9cca58e4e
Version 4.1.0
All checks were successful
/ test (push) Successful in 32s
2025-06-28 23:13:18 +02:00
de27fb7837
Update vite and fix dependencies for build. 2025-06-28 23:12:42 +02:00
18a162c6d7
Fix remaining eslint errors.
All checks were successful
/ test (push) Successful in 38s
2025-06-28 23:01:14 +02:00
784f527a9e
Add eslint to check the code. 2025-06-28 23:00:55 +02:00
a4c1c88138
Refactor types tests.
All checks were successful
/ test (push) Successful in 30s
2025-06-28 22:46:25 +02:00
38c87249b1
Fix test status badge to target main branch.
All checks were successful
/ test (push) Successful in 45s
2025-06-28 21:52:22 +02:00
72417dd350
Change the recommended model declaration to allow models inheritance.
All checks were successful
/ test (push) Successful in 37s
2025-06-28 21:47:15 +02:00
5f1e2709bb
Update yarn to latest stable version.
All checks were successful
/ test (push) Successful in 36s
2025-06-28 19:47:28 +02:00
ed1bfd464a
Update dev dependencies.
Some checks failed
/ test (push) Has been cancelled
2025-06-23 20:41:19 +02:00
97a3c18082
Apply prettier.
All checks were successful
/ test (push) Successful in 25s
2025-06-23 20:39:08 +02:00
ecd8852afa
Add extend function to easily extend an inherited model.
All checks were successful
/ test (push) Successful in 40s
2025-06-22 23:25:43 +02:00
75b7b35dd6
Add map type and document it.
All checks were successful
/ test (push) Successful in 26s
2025-06-22 19:32:25 +02:00
2d86f0fa1a
Add applyPatch function to update models using objects returned by patch function.
All checks were successful
/ test (push) Successful in 56s
2025-06-22 17:25:12 +02:00
7707789bbf
Add from function to initialize a model and assign properties values using any object, silently ignoring fields which are not properties.
All checks were successful
/ test (push) Successful in 51s
2025-04-20 20:45:52 +02:00
fbd2763ea6
Add assign function to assign properties values using any object, silently ignoring fields which are not properties. 2025-04-20 20:38:00 +02:00
40b348862a
Add package installation command in README.
All checks were successful
/ test (push) Successful in 22s
2025-03-30 13:16:00 +02:00
1af46c0aaf
Update badges.
All checks were successful
/ test (push) Successful in 21s
2025-03-30 13:09:31 +02:00
8b1a1dabcf
Update README for the new version and add tests status badge.
All checks were successful
/ test (push) Successful in 19s
2025-03-30 12:52:14 +02:00
7e86e6fe86
Add yarn.lock.
All checks were successful
/ test (push) Successful in 19s
2025-03-30 12:44:43 +02:00
2debdf5e46
Add test workflow. 2025-03-30 12:44:22 +02:00
8afce56b9e
Add runtime type checking and errors when invalid values are provided. 2025-03-30 11:33:22 +02:00
f5502109ac
Rewrite model system, solve circular dependencies issues, better testing, clone function. 2025-03-29 22:59:13 +01:00
6eee1b709e
Rename save function to patch to be less confusing (it doesn't actually save anything). 2024-10-05 17:36:03 +02:00
8f8dafed5b
Objects, arrays and models changes deep checks when checking if a model is dirty. 2024-10-05 16:55:09 +02:00
ff9cb91f73
Fix date property change detection. 2024-10-05 16:03:58 +02:00
e373efdd0a
Add a way to get the identifier name of a model. 2024-10-05 14:16:15 +02:00
4eb8b7d3bc
Add models extension system. 2024-10-04 21:24:11 +02:00
576338fa62
Improve returned model type for deserialize function. 2024-10-04 17:41:25 +02:00
62e62f962e
Add a new model class type. 2024-10-04 17:07:40 +02:00
22bc42acba
Change description in package.json. 2024-10-04 16:22:06 +02:00
6af0da6b55
More welcoming README and add logo. 2024-10-04 16:11:49 +02:00
6a14623355
Update repository and keywords. 2024-10-04 15:21:31 +02:00
3e291d6bd5
Change license info. 2024-10-04 15:00:29 +02:00
72df9f6453
Change README for 3.0.0. 2024-10-04 14:58:00 +02:00
e43e27e2e1
Models rewrite with new API for better typings and extensibility. 2024-10-03 23:33:00 +02:00
498d25a909
Fix undefined date serialization. 2024-09-30 22:58:17 +02:00
9cb2bf1e5c
Fix undefined decimal type serialization. 2024-09-30 22:53:42 +02:00
d96c39d079
Allow undefined values in simple objects. 2024-09-28 17:18:12 +02:00
b6411c9401
Add default public access as publish config. 2024-09-28 17:13:18 +02:00
f512675906
Version 2.1.0 2024-09-28 17:03:46 +02:00
bb5eed5162
Add a simple object type and other improvements. 2024-09-28 17:02:52 +02:00
eb920a3d6d
Remove reflect-metadata dependency. 2024-09-28 17:01:14 +02:00
0876c59c98
Update library build and test configuration. 2024-09-28 15:13:22 +02:00
13c852cd52 Version 2.0.1 2022-11-01 20:21:20 +01:00
5c465ed7ec Switch back to parcel for library build. 2022-11-01 20:20:28 +01:00
1c3c87a4a6 Architecture simplification: stop using decorators which adds unnecessary complexity and some compilation bugs.
+ Add a property definition class.
+ Add some definition functions on models, which have to be redefined when implementing a new model.
- Remove decorators.
2022-11-01 19:13:21 +01:00
13072b453f Version 1.3.1 2022-10-16 01:32:22 +02:00