marcj/marshal
### [`v1.0.2`](https://togithub.com/marcj/marshal/compare/v1.0.1...v1.0.2)
[Compare Source](https://togithub.com/marcj/marshal/compare/v1.0.1...v1.0.2)
### [`v1.0.1`](https://togithub.com/marcj/marshal/compare/v1.0.0...v1.0.1)
[Compare Source](https://togithub.com/marcj/marshal/compare/v1.0.0...v1.0.1)
### [`v1.0.0`](https://togithub.com/marcj/marshal/releases/v1.0.0)
[Compare Source](https://togithub.com/marcj/marshal/compare/v0.10.0...v1.0.0)
Major version.
Breaking changes:
- Removed `@Field()`, `@UUIDFile`, `@MongoIDField`, as well as other decorators and replaced with new decorator API `@f`, `@f.uuid()`, etc. See README.md for new examples.
- Renamed `getEntitySchema` to `getClassSchema`.
Added features
- Added shorter field declaration using `@f`, `@f.type(myClass)`, `@f.array(String).optional()`, etc.
- Added support for arbitrary method arguments with new reflection API. `getClassSchema(MyClass).getMethodProperties('myMethod')`.
- Added moment.js support.
- Added MongoDB database abstraction methods `fieldsOne()` and `fields()`.
### [`v0.10.0`](https://togithub.com/marcj/marshal/releases/v0.10.0)
[Compare Source](https://togithub.com/marcj/marshal/compare/v0.9.0...v0.10.0)
Changes
4f87514 - null behaves now exactly like undefined and falls back to the default value
8110fea - when value is null, dont use additional validators
05418cf - fixed bug where original data object is modified
3c17c3f - don't use typeorm's namingStrategy as its conflicts with entity definition
422cf3f - typeorm uses collection name for EntitySchema
Breaking changes:
- `null` values are handled now the same as `undefined` and fallback to the default value.
- mongo collection naming strategy changed to make it consistent
### [`v0.9.0`](https://togithub.com/marcj/marshal/releases/0.9.0)
[Compare Source](https://togithub.com/marcj/marshal/compare/v0.8.13...v0.9.0)
Changes
88c87b1 - added test to prevent multiple constructor param decorators with different names.
6bda674 - added database.patchAll, getClassTypeFromInstance, and isRegisteredEntity
6429ff6 - fixed null values in mongodb
c4227ae - Updated estdlib to 0.1.11 to fix enum support
5a8afd5 - Replaced @ConstructorParamNames with better new chaining API for @Field
New chaining `@Field` API, see docs.
```typescript
class MyModel {
@UUIDField().asId()
id: string = uuid();
@Field(String).optional().asArray()
tags?: string[];
constructor(
//asName is required for minimized code, old ConstructorParamNames
@Field().index().asName('name')
public name: string
) {}
}
```
Breaking changes:
- Dropped `@ConstructorParamNames`.
- All constructor parameters need to be named if you start using asName in at least one parameter.
### [`v0.8.13`](https://togithub.com/marcj/marshal/compare/v0.8.12...v0.8.13)
[Compare Source](https://togithub.com/marcj/marshal/compare/v0.8.12...v0.8.13)
### [`v0.8.12`](https://togithub.com/marcj/marshal/compare/v0.8.11...v0.8.12)
[Compare Source](https://togithub.com/marcj/marshal/compare/v0.8.11...v0.8.12)
### [`v0.8.11`](https://togithub.com/marcj/marshal/compare/v0.8.10...v0.8.11)
[Compare Source](https://togithub.com/marcj/marshal/compare/v0.8.10...v0.8.11)
Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
0.8.10
->1.0.2
Release Notes
marcj/marshal
### [`v1.0.2`](https://togithub.com/marcj/marshal/compare/v1.0.1...v1.0.2) [Compare Source](https://togithub.com/marcj/marshal/compare/v1.0.1...v1.0.2) ### [`v1.0.1`](https://togithub.com/marcj/marshal/compare/v1.0.0...v1.0.1) [Compare Source](https://togithub.com/marcj/marshal/compare/v1.0.0...v1.0.1) ### [`v1.0.0`](https://togithub.com/marcj/marshal/releases/v1.0.0) [Compare Source](https://togithub.com/marcj/marshal/compare/v0.10.0...v1.0.0) Major version. Breaking changes: - Removed `@Field()`, `@UUIDFile`, `@MongoIDField`, as well as other decorators and replaced with new decorator API `@f`, `@f.uuid()`, etc. See README.md for new examples. - Renamed `getEntitySchema` to `getClassSchema`. Added features - Added shorter field declaration using `@f`, `@f.type(myClass)`, `@f.array(String).optional()`, etc. - Added support for arbitrary method arguments with new reflection API. `getClassSchema(MyClass).getMethodProperties('myMethod')`. - Added moment.js support. - Added MongoDB database abstraction methods `fieldsOne()` and `fields()`. ### [`v0.10.0`](https://togithub.com/marcj/marshal/releases/v0.10.0) [Compare Source](https://togithub.com/marcj/marshal/compare/v0.9.0...v0.10.0) Changes 4f87514 - null behaves now exactly like undefined and falls back to the default valueRenovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.