Skip to content

Commit

Permalink
sanitizing the repo before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
anidotnet committed Jan 1, 2024
1 parent eb49c1b commit f516989
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 32 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ name: Release Nitrite

on:
push:
branches:
- release
paths-ignore:
- "README.md"
- "CHANGELOG.md"
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'

jobs:
test_linux:
name: Release Nitrite on Ubuntu
publish:
name: Publish Nitrite to pub.dev
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -33,8 +32,7 @@ jobs:
- name: Generate Docs
run: melos run dartdoc

- name: Version Nitrite
run: melos run version

- name: Publish Nitrite
run: melos run publish
run: melos run publish
with:
environment: dizitart
4 changes: 1 addition & 3 deletions examples/nitrite_demo/lib/providers/providers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ Future<Nitrite> db(DbRef ref) async {
var db = await Nitrite.builder()
.loadModule(storeModule)
.fieldSeparator('.')
.registerEntityConverter(TodoConverter())
.openOrCreate(username: 'demo', password: 'demo123');

var mapper = db.config.nitriteMapper as SimpleNitriteMapper;
mapper.registerEntityConverter(TodoConverter());

return db;
}

Expand Down
6 changes: 6 additions & 0 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,9 @@ scripts:
clean:
run: melos exec -- flutter clean
description: Run `flutter clean` for all packages.

publish:
run: |
melos run generate &&
melos exec --ignore="*demo*" -- dart pub publish --dry-run
description: Run `flutter pub publish` for all packages.
2 changes: 1 addition & 1 deletion packages/nitrite/lib/src/common/persistent_collection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ abstract class PersistentCollection<T>
void addProcessor(Processor processor);

/// Creates an index on the [fields], if not already exists.
/// If [indexOptions] is [null], it will use default options.
/// If [indexOptions] is `null`, it will use default options.
///
/// The default indexing option is -
///
Expand Down
2 changes: 1 addition & 1 deletion packages/nitrite/lib/src/common/write_result.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:nitrite/nitrite.dart';
class WriteResult extends Iterable<NitriteId> {
final List<NitriteId> _nitriteIds;

/// Creates a [WriteResult] with the given [nitriteIds].
/// Creates a [WriteResult] with the given `_nitriteIds`.
WriteResult(this._nitriteIds);

/// Returns the number of [Document]s affected by the write operation.
Expand Down
2 changes: 1 addition & 1 deletion packages/nitrite/lib/src/store/nitrite_map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ abstract class NitriteMap<Key, Value> extends AttributesAware
/// specified key.
Future<bool> containsKey(Key key);

/// Gets the value mapped with the specified key or [null] otherwise.
/// Gets the value mapped with the specified key or `null` otherwise.
Future<Value?> operator [](Key key);

/// Removes all entries in the map.
Expand Down
8 changes: 3 additions & 5 deletions packages/nitrite_hive_adapter/lib/src/store/hive_meta.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/// DO NOT EDIT THIS FILE EXCEPT TO ENTER INITIAL VERSION AND OTHER META INFO
/// THIS FILE IS AUTOMATICALLY OVER WRITTEN BY MetaUpdate
/// DO NOT EDIT THIS FILE EXCEPT TO ENTER INITIAL VERSION AND OTHER META INFO
/// THIS FILE IS AUTOMATICALLY OVER WRITTEN BY MetaUpdate
Map<String, String> meta = <String, String>{
"version":"2.2.3",
"version": "2.2.3",
};

2 changes: 1 addition & 1 deletion packages/nitrite_hive_adapter/lib/src/store/index.dart
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export 'hive_module.dart';
export 'hive_module.dart' hide TypeAdapterRegistrar;
3 changes: 1 addition & 2 deletions packages/nitrite_hive_adapter/test/hive_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ void main() {

String metaDartFileContents = """
/// DO NOT EDIT THIS FILE EXCEPT TO ENTER INITIAL VERSION AND OTHER META INFO
/// THIS FILE IS AUTOMATICALLY OVER WRITTEN BY MetaUpdate
/// THIS FILE IS AUTOMATICALLY OVER WRITTEN BY MetaUpdate
Map<String, String> meta = <String, String>{
"version":"$version",
};
Expand Down
4 changes: 2 additions & 2 deletions packages/nitrite_spatial/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## 0.0.1
## 1.0.0

* TODO: Describe initial release.
- Initial version.
1 change: 1 addition & 0 deletions packages/nitrite_spatial/lib/nitrite_spatial.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
///A library for using spatial data in Nitrite database.
library nitrite_spatial;

export 'src/converter.dart';
Expand Down
6 changes: 3 additions & 3 deletions packages/nitrite_spatial/lib/src/filter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class SpatialFluentFilter {

SpatialFluentFilter(this._field);

/// Creates a filter that matches documents whose [field] intersects the given [geometry].
/// Creates a filter that matches documents whose field intersects the given [geometry].
///
/// Example:
/// ```dart
Expand All @@ -104,7 +104,7 @@ class SpatialFluentFilter {
return IntersectsFilter(_field, geometry);
}

/// Creates a filter that matches documents whose [field] is within the given [geometry].
/// Creates a filter that matches documents whose field is within the given [geometry].
///
/// Example:
/// ```dart
Expand All @@ -114,7 +114,7 @@ class SpatialFluentFilter {
return WithinFilter(_field, geometry);
}

/// Creates a filter that matches documents whose [field] is near the given [center] within the given [radius].
/// Creates a filter that matches documents whose field is near the given [center] within the given [radius].
///
/// Example:
/// ```dart
Expand Down
4 changes: 2 additions & 2 deletions packages/nitrite_spatial/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:
dependencies:
dart_jts: ^0.3.0+1
nitrite: ^1.0.0
nitrite_hive_adapter: ^1.0.0
hive: ^2.2.3

dev_dependencies:
flutter:
Expand All @@ -19,8 +19,8 @@ dev_dependencies:
sdk: flutter
flutter_lints: ^3.0.1
build_runner: ^2.4.7
nitrite_hive_adapter: ^1.0.0
nitrite_generator: ^1.0.0
hive: ^2.2.3
path: ^1.8.3
path_provider: ^2.1.1
logging: ^1.0.2
Expand Down

0 comments on commit f516989

Please sign in to comment.