diff --git a/CHANGELOG.md b/CHANGELOG.md index 7612b0e2..babbe42b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -155,9 +155,9 @@ * Remove support for `FilterRelation.In` and "propertyname IN" for queries: This is not supported by the newer APIs and was originally part of fat-client - libraries which performed multiple queries for each iten in the list. + libraries which performed multiple queries for each item in the list. -* Adds optional `forComparision` named argument to `Property.encodeValue` which +* Adds optional `forComparison` named argument to `Property.encodeValue` which will be set to `true` when encoding a value for comparison in queries. * Upgrade to newer versions of `package:googleapis` and `package:googleapis_beta` @@ -232,7 +232,7 @@ ## 0.1.3+1 -* Change the service scope keys keys to non-private symbols. +* Change the service scope keys to non-private symbols. ## 0.1.3 diff --git a/lib/datastore.dart b/lib/datastore.dart index 53ca4eb2..24ffb733 100644 --- a/lib/datastore.dart +++ b/lib/datastore.dart @@ -54,14 +54,14 @@ class DatastoreError implements Exception { final String message; DatastoreError([String? message]) - : message = message ?? 'DatastoreError: An unknown error occured'; + : message = message ?? 'DatastoreError: An unknown error occurred'; @override String toString() => message; } class UnknownDatastoreError extends DatastoreError { - UnknownDatastoreError(error) : super('An unknown error occured ($error).'); + UnknownDatastoreError(error) : super('An unknown error occurred ($error).'); } class TransactionAbortedError extends DatastoreError { @@ -123,7 +123,7 @@ class Entity { /// A key can uniquely identify a datastore `Entity`s. It consists of a /// partition and path. The path consists of one or more `KeyElement`s. /// -/// A key may be incomplete. This is usesful when inserting `Entity`s which IDs +/// A key may be incomplete. This is useful when inserting `Entity`s which IDs /// should be automatically allocated. /// /// Example of a fully populated [Key]: @@ -386,7 +386,7 @@ abstract class Datastore { /// /// The [project] is the name of the Google Cloud project. /// - /// Returs an object providing access to Datastore. The passed-in [client] + /// Returns an object providing access to Datastore. The passed-in [client] /// will not be closed automatically. The caller is responsible for closing /// it. factory Datastore(http.Client client, String project) { diff --git a/lib/pubsub.dart b/lib/pubsub.dart index 42551f87..efa220cf 100644 --- a/lib/pubsub.dart +++ b/lib/pubsub.dart @@ -31,7 +31,7 @@ PubSub get pubsubService => ss.lookup(_pubsubKey) as PubSub; /// Registers the [pubsub] object within the current service scope. /// -/// The provided `pubsub` object will be avilable via the top-level +/// The provided `pubsub` object will be available via the top-level /// `pubsubService` getter. /// /// Calling this function outside of a service scope will result in an error. @@ -121,7 +121,7 @@ abstract class PubSub { /// /// The [project] is the name of the Google Cloud project. /// - /// Returs an object providing access to Pub/Sub. The passed-in [client] will + /// Returns an object providing access to Pub/Sub. The passed-in [client] will /// not be closed automatically. The caller is responsible for closing it. factory PubSub(http.Client client, String project) { var emulator = Platform.environment['PUBSUB_EMULATOR_HOST']; diff --git a/lib/service_scope.dart b/lib/service_scope.dart index 6e23c475..d85aed45 100644 --- a/lib/service_scope.dart +++ b/lib/service_scope.dart @@ -261,7 +261,7 @@ class _ServiceScope { _destroyed = true; if (errors.isNotEmpty) { throw Exception( - 'The following errors occured while running scope exit handlers' + 'The following errors occurred while running scope exit handlers' ': $errors'); } }); diff --git a/lib/src/datastore_impl.dart b/lib/src/datastore_impl.dart index d62868c6..25907566 100644 --- a/lib/src/datastore_impl.dart +++ b/lib/src/datastore_impl.dart @@ -277,7 +277,7 @@ class DatastoreImpl implements datastore.Datastore { if (error.status == 400) { return Future.error( datastore.ApplicationError( - error.message ?? 'An unknown error occured', + error.message ?? 'An unknown error occurred', ), stack, ); diff --git a/lib/src/db/db.dart b/lib/src/db/db.dart index 9a4bbf3c..a6e51492 100644 --- a/lib/src/db/db.dart +++ b/lib/src/db/db.dart @@ -425,7 +425,7 @@ Future _commitHelper(DatastoreDB db, for (var model in inserts) { // If parent was not explicitly set, we assume this model will map to - // it's own entity group. + // its own entity group. model.parentKey ??= db.defaultPartition.emptyKey; if (model.id == null) { autoIdModelInserts.add(model); diff --git a/lib/storage.dart b/lib/storage.dart index 3c726f2a..540c6510 100644 --- a/lib/storage.dart +++ b/lib/storage.dart @@ -43,7 +43,7 @@ /// In most cases relative names are used. Absolute names are typically /// only used for operations involving objects in different buckets. /// -/// For most of the APIs in ths library which take instances of other classes +/// For most of the APIs in this library which take instances of other classes /// from this library it is the assumption that the actual implementations /// provided here are used. library; @@ -260,7 +260,7 @@ abstract class AclScope { /// are set in the different subclasses. final String _id; - /// The type of this acope this ACL scope represents. + /// The type of this scope this ACL scope represents. final int _type; /// ACL scope for all authenticated users. diff --git a/test/datastore/e2e/datastore_test_impl.dart b/test/datastore/e2e/datastore_test_impl.dart index 120ec5e1..549063e6 100644 --- a/test/datastore/e2e/datastore_test_impl.dart +++ b/test/datastore/e2e/datastore_test_impl.dart @@ -441,7 +441,7 @@ void runTests(Datastore datastore, String? namespace) { }); }); - // This should not work with [unamedEntities20], but is working! + // This should not work with [unnamedEntities20], but is working! // FIXME TODO FIXME : look into this. test('delete_transactional', () { return insert([], unnamedEntities99, transactional: false).then((keys) { diff --git a/test/service_scope_test.dart b/test/service_scope_test.dart index 424ed3e6..1dfdf4b8 100644 --- a/test/service_scope_test.dart +++ b/test/service_scope_test.dart @@ -32,7 +32,7 @@ void main() { })); }); - test('non-existent-key', () { + test('nonexistent-key', () { return ss.fork(expectAsync0(() { expect(ss.lookup(1), isNull); return Future.value(); @@ -188,7 +188,7 @@ void main() { }); test('nested-fork-and-insert', () { - // Ensure that independently fork()ed serice scopes can insert keys + // Ensure that independently fork()ed service scopes can insert keys // independently and they cannot see each others values but can see parent // service scope values. var rootKey = 1;