Mention non-shared builder in changelog

This commit is contained in:
Simon Binder 2020-02-08 20:43:57 +01:00
parent d44004e598
commit b30c21e577
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
2 changed files with 6 additions and 1 deletions

View File

@ -99,7 +99,7 @@ In general, we recommend not enabling these options unless you need to. There ar
Starting with moor 2.4, it's possible to use classes generated by moor in other builders. Starting with moor 2.4, it's possible to use classes generated by moor in other builders.
Due to technicalities related to Dart's build system and `source_gen`, this approach requires a custom configuration Due to technicalities related to Dart's build system and `source_gen`, this approach requires a custom configuration
and minor code changes. and minor code changes. Put this content in a file called `build.yaml` next to your `pubspec.yaml`:
```yaml ```yaml
targets: targets:
@ -110,6 +110,10 @@ targets:
enabled: false enabled: false
moor_generator|moor_generator_not_shared: moor_generator|moor_generator_not_shared:
enabled: true enabled: true
# If needed, you can configure the builder like this:
# options:
# skip_verification_code: true
# use_experimental_inference: true
# Run built_value_generator when moor is done, which is not in this target. # Run built_value_generator when moor is done, which is not in this target.
built_value_generator|built_value: built_value_generator|built_value:

View File

@ -8,6 +8,7 @@
[#260](https://github.com/simolus3/moor/issues/260). [#260](https://github.com/simolus3/moor/issues/260).
- Fix a crash when opening a transaction without using it ([#361](https://github.com/simolus3/moor/issues/361)) - Fix a crash when opening a transaction without using it ([#361](https://github.com/simolus3/moor/issues/361))
- New `mapFromCompanion` method in generated tables to convert a `UpdateCompanion` to a model. - New `mapFromCompanion` method in generated tables to convert a `UpdateCompanion` to a model.
- Support generated moor classes in other builders (like `built_value`). Details [in the docs](https://moor.simonbinder.eu/docs/advanced-features/builder_options/)
## 2.3.0 ## 2.3.0