Prepare moor 4.6.0 release

This commit is contained in:
Simon Binder 2021-10-12 14:26:53 +02:00
parent 3cc17b0a45
commit 7d41e42c78
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
10 changed files with 28 additions and 13 deletions

View File

@ -1,6 +1,6 @@
---
name: Bug report
about: Create a report to help improve moor
about: Create a report to help improve drift and moor
title: ''
labels: ''
assignees: ''

View File

@ -1,7 +1,7 @@
contact_links:
- name: Discussions
url: https://github.com/simolus3/moor/discussions
about: "For questions on how to use moor, prefer a Q&A discussion over issues"
about: "For questions on how to use drift and moor, prefer a Q&A discussion over issues"
- name: Gitter community
url: https://gitter.im/moor-dart/community
about: "Chat room for quick questions"

View File

@ -40,7 +40,7 @@ environments:
base_url: "http://localhost:8080/"
preview:
minify: true
base_url: "https://moor.simonbinder.eu/"
base_url: "https://drift.simonbinder.eu/"
prod:
minify: true
base_url: "https://moor.simonbinder.eu/"
base_url: "https://drift.simonbinder.eu/"

View File

@ -1,4 +1,4 @@
## 1.0.0
## 1.0.1
This is the initial release of the `drift_dev` package (formally known as `moor_generator`).
For an overview of old `moor` releases, see its [changelog](https://pub.dev/packages/moor_generator/changelog).

View File

@ -1,6 +1,7 @@
# moor Generator
# Drift Generator
This library contains the generator that turns your `Table` classes from drift
into database code.
It should be used as a development dependency when using the `drift` package.
Please see the homepage of [drift](https://drift.simonbinder.eu/) for details on how to use this package.

View File

@ -42,7 +42,7 @@ class MigrateCommand extends MoorCommand {
await _applyToFile(file);
}
final isRunningFlutter = argResults.arguments.contains('flutter');
final isRunningFlutter = Platform.executable == 'flutter';
final formatCommand =
isRunningFlutter ? 'flutter format .' : 'dart format .';
final pubGetCommand = isRunningFlutter ? 'flutter pub get' : 'dart pub get';
@ -55,7 +55,12 @@ class MigrateCommand extends MoorCommand {
print(' - Changed files might need formatting - run `$formatCommand`');
print(' - Download drift with `$pubGetCommand`');
print(' - Re-run the build with `$buildCommand`');
print('Thanks for using ${styleCrossedOut.wrap('moor')} drift');
if (ansiOutputEnabled) {
print('Thanks for using ${styleCrossedOut.wrap('moor')} drift');
} else {
print('Thanks for using drift');
}
}
Future<void> _applyToFile(File file) async {

View File

@ -1,6 +1,6 @@
name: drift_dev
description: Dev-dependency for users of drift. Contains a the generator and development tools.
version: 1.0.0
version: 1.0.1
repository: https://github.com/simolus3/moor
homepage: https://drift.simonbinder.eu/
issue_tracker: https://github.com/simolus3/moor/issues

View File

@ -1,6 +1,6 @@
name: moor
description: Moor is a safe and reactive persistence library for Dart applications
version: 4.6.0-dev
version: 4.6.0
repository: https://github.com/simolus3/moor
homepage: https://moor.simonbinder.eu/
issue_tracker: https://github.com/simolus3/moor/issues
@ -12,7 +12,7 @@ dependencies:
async: ^2.5.0
convert: ^3.0.0
collection: ^1.15.0
drift: ^4.6.0
drift: ^1.0.0
meta: ^1.3.0
stream_channel: ^2.1.0
sqlite3: ^1.0.0

View File

@ -1,6 +1,6 @@
name: moor_generator
description: Dev-dependency to generate table and dataclasses together with the moor package.
version: 4.5.1
version: 4.6.0
repository: https://github.com/simolus3/moor
homepage: https://moor.simonbinder.eu/
issue_tracker: https://github.com/simolus3/moor/issues
@ -10,6 +10,9 @@ environment:
dependencies:
drift_dev: ^1.0.0
# When users depend on the latest moor_generator, they should also get the latest moor for
# the migration to work
moor: ^4.6.0
executables:
moor_generator:

View File

@ -5,7 +5,13 @@
[[redirects]]
from = "https://moor.netlify.app/*"
to = "https://moor.simonbinder.eu/:splat"
to = "https://drift.simonbinder.eu/:splat"
status = 301
force = true
[[redirects]]
from = "https://moor.simonbinder.eu/*"
to = "https://drift.simonbinder.eu/:splat"
status = 301
force = true