Releases: thothom/core
Releases · thothom/core
[0.0.1] - 2022-06-30
[0.0.1] - 2022-06-30
Added
Changed
- Package name to
ThothOM,@thothom/core
Fixed
Removed
Dependencies
- [dayjs] 1.10.6 -> 1.11.2
[0.0.31] - 2022-02-12
[0.0.31] - 2022-02-12
Added
Changed
- [BC] Return of all repository methods.
- Instead of returning directly the data, will return a object with a
dataproperty, so it can return more data
- Instead of returning directly the data, will return a object with a
Fixed
Removed
Dependencies
[0.0.30] - 2021-12-25
[0.0.30] - 2021-12-25
Added
Changed
Fixed
Removed
- All relational support
Dependencies
- Update TypeScript to 4.5.4
[0.0.29] - 2021-12-05
[0.0.29] - 2021-12-05
Added
- [BC]
validatemethod toBaseConnection- Will be used to validate connection data
- Ex: If mongodb plugin, validate if all entities have only one primary column, and it's name is
_id
@OneToOnedecorator@OneToManydecorator@ManyToOnedecorator- [BC] Support for relations at
saveandinsertmethodsbeforeSaveandbeforeInsertwill now always return andataarray, and a new propreturnArrayto tell the devs of plugins / core if they should return an array to the final user or not
beforeInsert,beforeSave,beforeUpdateandbeforeUpsertreturn formatted relations data in a new proprelations
Changed
- [BC]
saveandinsertdoesn't need the extra type info anymore.save<Array<Entity>>([data])->.save([data]).save<Entity>(data)->.save(data).insert<Array<Entity>>([data])->.insert([data]).insert<Entity>(data)->.insert(data)
- [BC] Standardize
upsertandupdatereturns- Will now only return arrays
- [BC] Update
connectmethod to returnthisinsteadvoid- This way users can chain the methods
- Ex:
const connection = await new Connection().load().connect()
- [Internal] Update
optionsto completely removeentitiesandentitiesDir - Now loads both
entitiesandentitiesDiroptions, so both can be used at the same time - [BC] Update extra metadata to allow infinite extra metadata
- Now the extra metadata is one unique object, and it's properties are used to get the types
- [Internal] after* And before* Methods Location
- Will make it easier to use a unique function to convert data, and handle relations
- Allow functions to be passed as strategy on
PrimaryGeneratedColumndecorator
Fixed
metadataKeytype ofDefineEntityMetadataParamsandGetEntityMetadataParams- [BC]
before*andafter*methods returns type ofRepositoryclass - Only validates if the plugin is installed on cli calls
- The validation cold stay there, but in minified apps, it's impossible to validate if the plugin is installed, so it's better to only validate on CLI calls.
Removed
Dependencies
- Bump @vercel/ncc from 0.31.1 to 0.33.0
- Bump jest from 27.3.1 to 27.4.3
- Bump lint-staged from 12.0.2 to 12.1.2
- Bump @techmmunity/utils from 1.8.1 to 1.9.1
- Bump prettier from 2.4.1 to 2.5.1
- Bump eslint from 8.2.0 to 8.4.0
- Bump @types/uuid from 8.3.1 to 8.3.3
- Bump @types/jest from 27.0.2 to 27.0.3
[0.0.28] - 2021-11-16
[0.0.28] - 2021-11-16
Added
Changed
Fixed
- Type
FindConditions, now sub-entities also accept FindOperators. - [BC]
getGlobalRepositoryreturn type- Now receives a
Repositoryas type, instead anEntity - Ex:
getGlobalRepository<Entity>(Entity)->getGlobalRepository<EntityRepository>(Entity)
- Now receives a
Removed
[0.0.27] - 2021-11-12
[0.0.27] - 2021-11-12
Added
SubEntitydecoratorCountColumndecoratorEntityTypetyperunBeforeUpsertandrunAfterUpserttypes- [BC]
closemethod toConnection
Changed
savedatabase event is nowinsertrunBeforeSave->runBeforeInsertrunAfterSave->runAfterInsert- [BC]
SaveDateColumn->InsertDateColumn
Fixed
getGlobalConnectionreturn type (add dynamic return type)setGlobalConnectionparam type (add dynamic param type)
Removed
- [BC]
isSubEntityoption from@Entity(replaced by@SubEntity())
[0.0.26] - 2021-11-04
[0.0.26] - 2021-11-04
Added
- Tests to check if the entities of
EntityManagerare being loaded
Changed
- Make
entitiesofEntityManagerpublic
Fixed
getGlobalRepositorytypeglobimport typeloadEntitiestype (entitiesDir may be undefined)
Removed
[BUGFIX] 0.0.25
[0.0.25] - 2021-10-27
Added
Changed
- Change
globtotiny-globbecause of problems with types
Removed
[BUGFIX] 0.0.24
Fix Build Command (and try to fix glob types bug)
[BUGFIX] 0.0.23
Add Glob Types