bones_api 1.3.38
bones_api: ^1.3.38 copied to clipboard
Bones_API - A Powerful API backend framework for Dart. Comes with a built-in HTTP Server, routes handler, entity handler, SQL translator, and DB adapters.
1.3.38 #
SQLGenerator:- Remove unecessary
UPDATE CASCADEforid(auto increment) references.
- Remove unecessary
- reflection_factory: ^2.0.0
- async_events: ^1.0.9
1.3.37 #
TransactionEntityProvider:- Fix
getEntityByIDimplementation: wasn't passing parameterresolutionRulesto sub-calls.
- Fix
- reflection_factory: ^1.2.25
1.3.36 #
DBRelationalEntityRepository:_ensureRelationshipsStored: avoid store of relationship fields if not inchangedFields.
DBMemorySQLAdapterandDBMemoryObjectAdapter:- Construct
TableSchemewithout relationship fields duplicated in the main fields.
- Construct
- args: ^2.3.2
- reflection_factory: ^1.2.22
1.3.35 #
- New
testAPIServertool. - Updated
bones_api_template.tar.gz. - shelf_gzip: ^4.0.1
- mime: ^1.0.4
- stream_channel: ^2.1.1
- test: ^1.22.2
- coverage: ^1.6.2
1.3.34 #
- reflection_factory: ^1.2.21
1.3.33 #
- reflection_factory: ^1.2.19
1.3.32 #
APIServer:defaultApiCacheControlanddefaultStaticFilesCacheControl:- Added
no-transformdirective.
- Added
- reflection_factory: ^1.2.18
1.3.31 #
APIServer:- Optimize headers.
- Added fields:
apiCacheControlandstaticFilesCacheControl. - Better
cache-controldefault values.
1.3.30 #
- statistics: ^1.0.24
- resource_portable: ^3.0.1
- swiss_knife: ^3.1.3
- archive: ^3.3.5
- mercury_client: ^2.1.8
1.3.29 #
DBAdapterandDBRepositoryAdapter:- Added
doSelectAll
- Added
DBMemoryObjectAdapter:- Added support for
doSelectAll.
- Added support for
APIDBModule:- Added
dumproute. - JSON output compact: compatible with DB populate source samples.
- Added
- mime: ^1.0.3
- path: ^1.8.3
- yaml_writer: ^1.0.3
- build_runner: ^2.3.3
- build_verify: ^3.1.0
- test: ^1.22.1
1.3.28 #
APIRoot._callZoned: fix error handling.
1.3.27 #
APIDBModule:- Added constructor parameter
nameandonlyOnDevelopment.
- Added constructor parameter
APISecurity:- Allow call to
authenticatewithrequestparameter from anAPIModule.
- Allow call to
1.3.26 #
APIModule:- Allow method routes with parameter
APIAuthentication.
- Allow method routes with parameter
APIRoot._callZoned: ensure that is catchingFutureerrors.- Added
APIConfig.developmentto inform development environment. - Added
APIDBModule: a development module only to show DB entities.
1.3.25 #
APISecurity:- Added
disposeAuthenticationData.
- Added
- swiss_knife: ^3.1.2
- pubspec: ^2.3.0
- coverage: ^1.6.1
1.3.24 #
APIResponse:- Fix constructor parameter
headersto ensure that it's always modifiable.
- Fix constructor parameter
APIServer:- Static files:
- Added
gzipencoding. - Added
cache-controlresponse header.
- Added
- Static files:
- logging: ^1.1.0
- collection: ^1.17.0
- mercury_client: ^2.1.7
- async_events: ^1.0.8
- archive: ^3.3.4
- lints: ^2.0.1
- build_runner: ^2.3.2
- test: ^1.22.0
1.3.23 #
APISecurity:- Added
logoutandinvalidateToken.
- Added
- Fixed
OPTIONSmethod forauthenticationRoute(/authenticate). - sdk: '>=2.18.0 <3.0.0'
- petitparser: ^5.1.0
1.3.22 #
- reflection_factory: ^1.2.17
- async_events: ^1.0.7
1.3.21 #
APIServer:- Added
useSessionIDto enable/disable theSESSIONIDcookie. - Added option
cookielessfor a server that blocks all cookies. - Added support for
Keep-Alive.
- Added
APIRequest:- Added
protocolandkeepAlive.
- Added
APIResponse:- Added
keepAliveTimeoutandkeepAliveMaxRequests.
- Added
1.3.20 #
- reflection_factory: ^1.2.16
1.3.19 #
ClassReflectionExtension:- Added:
toEntityReference,toEntityReferenceListandtoList.
- Added:
TypeInfoEntityExtension:- Added
isValidEntityReferenceTypeandisValidEntityReferenceListType.
- Added
JsonDecoder.registerTypeDecoderforEntityReferenceandEntityReferenceList:- Allow decoding of
nullvalues asEntityReference.asNullandEntityReferenceList.asNull.
- Allow decoding of
- reflection_factory: ^1.2.15
- shelf: ^1.4.0
- postgres: ^2.5.2
- build_runner: ^2.2.1
- test: ^1.21.6
1.3.18 #
APIRoot.resolveModule: defaults to path part#0.APIModule.resolveRoute: defaults to path part#1 ?? #0.- Ensure that any route resolution passes through
resolveRoutemethod (allowing personalization).
- Ensure that any route resolution passes through
APIRouteBuilder: allow path parts as parameter value byparameterIndex.- reflection_factory: ^1.2.14
1.3.17 #
- Added
Etag:WeakEtagandStrongEtag. - Added
CacheControlDirectiveandCacheControl. APIResponse:- Added
payloadETagandcacheControl. - Added
APIResponse.notModified.
- Added
- archive: ^3.3.1
1.3.16 #
APISecurity:- Adjust
_storeTokeInfo.
- Adjust
- async_events: ^1.0.6
1.3.15 #
DBSQLAdapter.generateCreateTableSQLs:- Fix CREATE TABLE SQLs order when a field is referencing to another DB.
1.3.14 #
APISecurity:getCredentialPermissions: Added parameterpreviousPermissions.getAuthenticationData: Added parameterpreviousData.
- async_events: ^1.0.5
1.3.13 #
- Ensure that parameter
EntityResolutionRules? resolutionRulesis fully propagated while fetching and resolving entities. - Added
TransactionEntityProviderto correctly resolve entities while callingentityHandler.createFromMapinside aTransaction. EntityReferenceBase:- Added
typeNamefor correct generation of JSON. - Added parameter
withEntitytocopy.
- Added
- Export
MimeTypeandDataURLBase64from packageswiss_knife. - reflection_factory: ^1.2.13
1.3.12 #
- Add
EntityHandler.typeNameto avoid minification issues withTypes name. - async_events: ^1.0.4
- reflection_factory: ^1.2.12
1.3.11 #
DBAdapter:- Fix resolution of
EntityReferenceBasefield table.
- Fix resolution of
DBMemorySQLAdapter:- Fix resolution of relationship tables with multiple candidates.
1.3.10 #
EntityReference.fromID: accepts null ID (works likeasNull).Initializable:InitializationChain._isParent: improve speed of search in the parent tree.
- Fix update of
Uint8Listfields.
1.3.9 #
- Improved
enumFromName. - Added
IterableEnumExtension. - Added
Type.tryParse. EntityReferenceandEntityReferenceList:- improve
fromJson.
- improve
- Fix
EntityRepository.selectFirstByQuery:resolutionRuleswasn't being passed to sub calls.
1.3.8 #
- Added
APIRequest.id. - Added
APIRoot.currentAPIRequest.- Logging messages now show the current
APIRequest.id.
- Logging messages now show the current
/API-INFO:- Now accepts a selected module. Example:
/API-INFO/user
- Now accepts a selected module. Example:
- Added
APIRequest.parsingDuration. - Added
APIRepository.count. - Added
DBEntityRepositoryProvider.extraDependencies. - Added
Transaction.parentTransaction:cacheEntitynow also propagates cache toparentTransaction.
EntityHandler:Uint8Listresolution: now acceptsbase64,HEXandData URL.
- Added
EntityReferenceList: a version ofEntityReferencefor entities lists. - Fix
EntityRepository._entitiesTracker: now tracked fields values are isolated from tracked entity. - Fix
APISecurity._resolveAuthentication: avoid multiple parallel calls for user resolution. - Added tests for
DBMemoryObjectAdapter. - reflection_factory: ^1.2.10
1.3.7 #
- Added
EntityReference: An entity field wrapper that allows lazy load of sub-entities. - Added
EntityResolutionRulesto allow lazy or eager selects. EntityProvider:getEntityByID: Added parametersync.
- reflection_factory: ^1.2.9
1.3.6 #
- Added integration with
AsyncEvent. - reflection_factory: ^1.2.6
- async_events: ^1.0.3
- statistics: ^1.0.23
- postgres: ^2.4.6
- shelf: ^1.3.2
- yaml_writer: ^1.0.2
1.3.5 #
SQL:- Added
isFullyDummy.
- Added
DBSQLAdapter:- Improve
fieldValueToSQLwhen the entity is from another adapter. updateSQLanddoUpdateSQL: return the ID even when theSQL.isDummy.
- Improve
1.3.4 #
APIRouteBuilder: Accepts Data URL forUint8Listparameters.APIModuleHttpProxy.doRequest: convertsUint8Listto Data URL (throughJson.toJson).
1.3.3 #
- Added
EntityResolutionRules. populateFromSource:- Allow source samples with
url(path/to/file.txt), that will be read from a local file.
- Allow source samples with
1.3.2 #
- Clean code.
1.3.1 #
DBMemorySQLAdapter,DBMemoryObjectAdapter,DBPostgreSQLAdapterDBMySQLAdapter:- Improve
toString: showinstanceID.
- Improve
SQLGenerator:- Fix CONSTRAINT to an entity type from another DBAdapter.
1.3.0 #
- Clean code:
- Renamed
MemorySQLAdaptertoDBMemorySQLAdapter. - Renamed
MemoryObjectAdaptertoDBMemoryObjectAdapter. - Renamed
SQLAdaptertoDBSQLAdapter.- Renamed
SQLEntityRepositorytoDBSQLEntityRepository. - Renamed
SQLEntityRepositoryProvidertoDBSQLEntityRepositoryProvider.
- Renamed
- Renamed
MySQLAdaptertoDBMySQLAdapter. - Renamed
PostgreSQLAdaptertoDBPostgreSQLAdapter. - Renamed
bones_api_adapter_mysql.darttobones_api_db_mysql.dart. - Renamed
bones_api_adapter_postgre.darttobones_api_db_postgre.dart. - Renamed some
lib/src/*.dartfiles.
- Renamed
1.2.26 #
- Fix resolution of
EntityRepositorywhen the same instance is returned by multiple providers. - Fix
selectByIDwith null parameters and null ID. - Fix resolution of route parameters with a type of
Listof entities. - sdk: '>=2.17.0 <3.0.0'
- reflection_factory: ^1.2.5
1.2.25 #
- Added
ZoneField:- A field value based on the current
Zone. - Used to correctly resolve
Transaction.executingTransactionand allow multiple simultaneousTransactions.
- A field value based on the current
APIRouteBuilder:- Improve resolution of request parameters (entities,
Decimaland bytes). - Allow resolution of entities and parameters using the request's payload.
- Improve resolution of request parameters (entities,
- New
MemoryObjectAdapter: allow storage of objects without relationships. - Added
DBRelationalAdapter:- Refactor
DBAdapterandSQLAdapterto have an intermediateDBRelationalAdapter.
- Refactor
Transaction:- Fix finalization when some complex asynchronous errors happens in the
Transaction. - Added
TransactionOperationSubTransaction, to wrap sub transactions as an operation of the parent transaction (used when multipleDBAdapters are used in aTransaction).
- Fix finalization when some complex asynchronous errors happens in the
- data_serializer: ^1.0.7
- map_history: ^1.0.3
- async_extension: ^1.0.11
- reflection_factory: ^1.2.4
1.2.24 #
bin/bones_api.dart:- Fix parameter
--libwhen respawning for Hot Reload.
- Fix parameter
- Added
SQLDialectfor better handling of syntax variations. SQLAdapter:- Moved to
SQLDialect:sqlElementQuote,sqlAcceptsOutputSyntax,sqlAcceptsReturningSyntax,sqlAcceptsTemporaryTableForReturning,sqlAcceptsInsertDefaultValues,sqlAcceptsInsertIgnore,sqlAcceptsInsertOnConflict.
- Moved to
SQLGenerator: allowVARCHAR PRIMARY KEY.EntityHandler:- Fix
EntityCacheinteraction issues:- Some instance were not being cached depending on the instantiation type.
- Internal call to
Json.fromJsonwere wrongly clearing theEntityCache.
- Respecting new parameter
EntityCache.allowEntityFetch.
- Fix
APIPayload(APIRequest,APIResponse):- Changed
payloadMimeTypefromStringtoMimeType.
- Changed
- async_extension: ^1.0.10
- reflection_factory: ^1.2.3
- statistics: ^1.0.22
1.2.23 #
APIConfig:- Added
sourceParentPath.
- Added
EntityRepositoryProvider:populateFromSource: added parameterworkingPath.
DBAdapterandSQLAdapter:- added parameter
workingPath.
- added parameter
APIPlatform:resolveFilePath: added parameterparentPath.
bin/bones_api.dart:- Added command
inspect.
- Added command
- Updated
lib/src/template/bones_api_template.tar.gz. - reflection_factory: ^1.2.2
1.2.22 #
SQLAdapterCapability:- Fix declaration for
PostgreSQLAdapterandMySQLAdapter.
- Fix declaration for
1.2.21 #
APIRepository:- Add missing
transactionparameters.
- Add missing
Transaction:- Added
executeOrError.
- Added
APIResponse:- added field
stackTrace.
- added field
APIRouteHandler:- Added logging of route call.
- Added
MapAsCacheExtension.
1.2.20 #
SQLAdapter:- generateTables: fix, to avoid generation if
capability.tableSQLisfalse.
- generateTables: fix, to avoid generation if
- reflection_factory: ^1.2.1
1.2.19 #
TableScheme:getTableRelationshipReference: better resolution when an entity has multipleListfields referencing the same entity/table.
1.2.18 #
Transaction:- Fix synchronization of final return for long transactions.
- Added
SQLAdapterExceptionandDBAdapterExceptionfor better exception/error handling:MemorySQLAdapterException.PostgreSQLAdapterException.MySQLAdapterException.
- Added
FieldNameMapper.
1.2.17 #
- Fix resolution of table columns to entity fields when resolving sub-entities.
1.2.16 #
MemorySQLAdapter:- Fix delete constraint for tables without referenced fields.
APIRoot:- Added
getByType. - Added
close(removes from availableAPIRootinstances). stopnow also closes theAPIRoot.
- Added
APIServer:stopnow also closes theAPIRoot.
EntityRepositoryProvider:- Optimize
getEntityRepository - Added
getEntityRepositoryByType.
- Optimize
EntityHandler:- Added
getEntityHandlerByTypeandgetEntityRepositoryByType.
- Added
EntityHandlerProvider:- Added
getEntityHandlerByTypeandgetEntityRepositoryByType.
- Added
clearPool:clearPoolnow also closes/disposes all elements in the pool.
1.2.15 #
ConditionSQLEncoder:keyFieldToSQL: fix resolution of class field to table column name.- Added
resolveFieldName.
EntityStorage:- Added
tryDeleteEntityandtryDeleteByID.
- Added
MemorySQLAdapternow check references constraint before delete.PostgreSQLAdapter: improved connection retry.- Added
tryCallMappedandtryCallutils.
1.2.14 #
SQLAdapter:- Added option
generateTables: will automatically generate the tables when initialized.
- Added option
PostgreSQLAdapter:- When update auto inserts (new entity with pre-defined ID), a fix of the primary key sequence is performed.
1.2.13 #
SQLGenerator:- Added
normalizeColumnName: now generates column names using underscore (from camel-case fields).
- Added
StringUtils:- Added
toLowerCaseSimpleandtoLowerCaseUnderscore.
- Added
1.2.12 #
MemorySQLAdapter: check for unique fields.PostgreSQLAdapterandMySQLAdapter: handles unique field errors asEntityFieldInvalid.EntityFieldInvalid: improved error information (addedtableNameandparentError).
1.2.11 #
EntityHandler: FixvalidateFieldValuefor sub-entities.
1.2.10 #
- Generate
CREATE TABLESQL with unique constraint (fromEntityField).
1.2.9 #
- Generate
CREATE TABLESQL usingEntityFieldinformation.
1.2.8 #
- Add
EntityField: annotation to inform if a field ishidden,uniqueand its limits (minimum,maximum). EntityStorage: now checks entity fields validity (EntityField).
1.2.7 #
- Split
bones_api_entity_adapter.dartintobones_api_entity_adapter_sql.dart. PostgreSQLAdapter:- dialect: "PostgreSQL"
MySQLAdapter:- dialect: "MySQL"
SQLGenerator:generateCreateTableSQL:- Added parameters
ifNotExistsandsortColumns. - fix column generation for enum fields.
- Added parameters
generateFullCreateTableSQLs: added parameterswithDate,ifNotExistsandsortColumns.
SQLAdaptertests:- Now is creating tables using
generateFullCreateTableSQLs(MySQLandPostgreSQL).
- Now is creating tables using
1.2.6 #
- Added
SQLBuilderthat is used to generate the entitiesCREATE TABLESQLs. - Added
SQLGeneratorthat is capable to generate entities tables and relationships SQLs. - Split
SQLAdapterandSQLAdapterCapabilityintoDBAdapterCapabilityandDBAdapter. SQLAdapter:- Added
generateCreateTableSQLs,generateFullCreateTableSQLs,generateEntityRepositoresCreateTableSQLs.
- Added
- Added
DBEntityRepositoryProviderandSQLEntityRepositoryProvider. - statistics: ^1.0.21
- test: ^1.21.4
- dependency_validator: ^3.2.2
1.2.5 #
- sdk: '>=2.15.0 <3.0.0'
- petitparser: ^5.0.0
- hotreloader: ^3.0.5
1.2.4 #
SQLAdapter:- Fix
extractSQLs.
- Fix
APITestConfigDBMemory:- Now starts creating a
MemorySQLAdapter.
- Now starts creating a
APITestConfigDockerPostgreSQL:- Fix
listTablesimplementation.
- Fix
APITestConfigDockerMySQL:- Fix
listTablesimplementation.
- Fix
1.2.3 #
APIRootStarter:- Added
isStopped. - Improved documentation.
- Improved tests.
- Added
APIRouteBuilder:apiInfonow also returnsAPIRouteInfofor method specific routes.
APITestConfig:- Added
resolveSupported,isSupported,isUnsupportedandunsupportedReason. - New
APITestConfigDockerDBSQL: adding SQL methods for DB containers with SQL support.
- Added
- Better hierarchy of
APITestConfigimplementations. LoggerHandler:- Exposed global function
logToConsole. - Added
cancelLogToConsole.
- Exposed global function
- Added library
bones_api_test_vm.dart.- Exposes
resolveFreePort(now uses a random approach to avoid collision between parallel tests).
- Exposes
- docker_commander: ^2.0.15
1.2.2 #
- Fix library names:
bones_api_testbones_api_test.mysql.bones_api_test.postgres.
1.2.1 #
EntityAccessor: addednameSimplified.LoggerHandler:logToConsole: avoid multiple listeners to the root logger.
APITestConfigDocker: remove unnecessary call tologToConsole().- Fix imports at
bones_api_root_starter.dart.
1.2.0 #
- Added
APIRootStarterhelper. - Added
APITestConfig: anAPIRoottest helper. - Added
APITestConfigDocker, a base class forDockerdatabase containers:APITestConfigDockerMySQL(MySQL container)APITestConfigDockerPostgreSQL(PostgreSQL container)
APIConfig: now supports variables (%VAR_NAME%).SQLAdapterCapability: added capabilitytableSQL.SQLAdapter:- Added parameters
populateTablesandpopulateSource(previously present only forMemorySQLAdapter). - Added
populateTablesandexecuteTableSQLmethods. generateInsertSQL: fix issue when all values are null.
- Added parameters
MySQLAdapterandPostgreSQLAdapter:- Improved automatic resolution of relationship tables.
MemorySQLAdapter:populateFromSourcemoved toEntityRepositoryProviderextension.
APIPlatform:getProperty: read a property from an "environment variable" (VM) orwindow.location.href(Browser).
APISessionandAPISessionSet: moved tobones_api_session.dart.- Change named parameter
caseInsensitivetocaseSensitiveto followRegExpparameters naming style. - Split
bones_api_utils.dartin multiple utils files:bones_api_utils_collections.dartbones_api_utils_httpclient.dartbones_api_utils_json.dartbones_api_utils_timedmap.dart
- docker_commander: ^2.0.14
1.1.34 #
MemorySQLAdapter:- Consolidating tables after a transaction is finished, removing unnecessary history data.
- map_history: ^1.0.2
1.1.33 #
- mysql1: ^0.20.0
- postgres: ^2.4.5
- lints: ^2.0.0
- coverage: ^1.3.2
1.1.32 #
MemorySQLAdapter:- Using
MapHistoryfor internal representation, to allow rollback of transactions. SQLAdapterCapability:transactionAbort:true(rollback support).
- Using
- Tests for
SQLAdapter:- Improve detection of
Dockerdaemon and skipping of tests group whenDockeris not running.
- Improve detection of
- map_history: ^1.0.1
1.1.31 #
EntityHandler:castListNullableandcastIterableNullable.castList: better exception message when an element is null.
Condition: Better resolution and matching of JSON collections and entities.KeyCondition:- Fix
_resolveValueEntityHandlerforListentities types.
- Fix
MemorySQLAdapter:- Fix
_normalizeEntityJSON.
- Fix
1.1.30 #
MemorySQLAdapter:- Ensure that the stored data has only valid JSON values for the whole entity tree.
EntityRepository:- Added
isOfEntityType.
- Added
1.1.29 #
EntityRepository:- Added
deleteEntity,deleteByIDanddeleteEntityCascade.
- Added
EntityHandler:- Renamed
isValidTypetoisValidEntityType.
- Renamed
- shelf: ^1.3.1
- shelf_static: ^1.1.1
- reflection_factory: ^1.2.0
- postgres: ^2.4.4
1.1.28 #
EntitySource:- Added
selectFirstByQuery.
- Added
- Clean code.
1.1.27 #
Initializable:Initializable.initialize: Now returns aInitializationResult, allow improved results and dependencies in the result.- Improve automatic detection of circular dependencies and avoid deadlocks.
- Refactor of dependency chain analysis code.
1.1.26 #
Initializable:- Moved code to
bones_api_initializable.dart. - Initialization of circular dependencies:
- Automatically identify initialization of circular dependencies.
- "Fix" the asynchronous deadlock caused by wait of circular dependencies.
- Moved code to
1.1.25 #
EntityRepositoryProvider:storeAllFromJson: ensure that operations are executed sequentially.
1.1.24 #
- Improve populate of entities using ID as reference to sub entities fields.
EntitySource:- Added
existsID.
- Added
SQLAdapter:- Fixed storage (and update fallback) of entities with pre-defined IDs.
MemorySQLAdapter:- Fixed
countwith a condition.s
- Fixed
- petitparser: ^4.4.0
1.1.23 #
- Small path for the last version.
1.1.22 #
MemorySQLAdapter:- Fixed when comparing entities and IDs.
1.1.21 #
Initializable:- Now allows async initializations.
MethodReflectionExtension:isAPIMethodnow acceptsFutureOr<APIResponse>.
EntityRepository:- Added
selectAll.
- Added
- reflection_factory: ^1.1.2
- crypto: ^3.0.2
- shelf: ^1.3.0
- hotreloader: ^3.0.4
- args: ^2.3.1
- yaml: ^3.1.1
1.1.20 #
APIServer:- Improve resolution of
APICredentialusername.
- Improve resolution of
- mercury_client: ^2.1.6
1.1.19 #
APIServer:- Improved resolution of request payload.
- Added
decodeQueryStringParameters, for full decoding of query string with single and multiple parameters.
1.1.18 #
APIRoot:- Added
callAuthenticate.
- Added
APIRequest:- Added
credentialto constructors.
- Added
1.1.17 #
APIModuleProxy:- ignoreParametersTypes: added type
APICredential(should exist only in the implementation).
- ignoreParametersTypes: added type
- reflection_factory: ^1.1.0
1.1.16 #
- reflection_factory: ^1.0.29
1.1.15 #
- Improved GitHub CI.
- Added browser tests.
- mercury_client: ^2.1.5
- swiss_knife: ^3.1.0
- data_serializer: ^1.0.7
1.1.14 #
MemorySQLAdapter: fixnextIDwhen entities are stored with pre-defined IDs.EntityHandler: RenameidFieldsNametoidFieldName.
1.1.13 #
ClassReflectionEntityHandler:- Improve
createFromMap. - Compatibility with
JsonFieldAlias.
- Improve
- reflection_factory: ^1.0.28
1.1.12 #
SQLAdapter(PostgreSQL,MySQLand in-memory):- Allow auto insert of new entities with explicit IDs. It was trying to update an entity that is not stored.
MemorySQLAdapter:- Fixed support for relationship tables.
- Fixed isolation of internal data (memory) that was leaking through queries results.
- Improved tests: now running same tests of
PostgreSQLandMySQL.
- Better resolution of
EntityRepositorywhen multiple candidates are present. - Added helpers:
deepCopy,deepCopyList,deepCopySetanddeepCopyMap.
1.1.11 #
Transaction:- Queries now reuse already instantiated entities in the same transaction.
- Added
EntityCachefor entity instantiation fromMapor JSON. EntityRepository:- Added
storeAllFromJsonandstoreFromJson.
- Added
MemorySQLAdapter:- Fixed relationships of
TableSchemeloaded by the memory SQLAdapter.
- Fixed relationships of
- Fix update of sub-entities, that was being ignored.
- Improve error logging.
- reflection_factory: ^1.0.27
1.1.10 #
- Optimize relationship requests to resolve entities.
MemorySQLAdapter: support of returned columns with alias name.
1.1.9 #
- Fix update SQL when a set value is null.
1.1.8 #
APIServerandAPIModule: improved error logging.- statistics: ^1.0.20
1.1.7 #
APIModuleProxy: ignoringAPIRequestparameters.- reflection_factory: ^1.0.25
1.1.6 #
APIServer:- Improved CORES response (
OPTIONSrequest).
- Improved CORES response (
APISecurity:- Improved resolution of credential token and related username.
- Improved tests.
1.1.5 #
- SQL:
- Added:
numerictype mapped toDecimal.
- Added:
- Fix JSON parsing of
Decimaltypes.
1.1.4 #
- Integrate
Decimalto entities, repositories, JSON and SQL. - Improve
APIPlatform. - statistics: ^1.0.19
1.1.3 #
EntityHandler.resolveValueByType:- Avoid
dev_compilerbug https://github.com/dart-lang/sdk/issues/48631 when generating JS code.
- Avoid
1.1.2 #
- Added
ConditionIdIN: to allow optimized selection of multiple IDs with one query. - Added
EntityProviderto all entity field resolution related operations, likecreateFromMapandJson.decode. - Improve
APIModuleHttpProxyresponse body decoding. - reflection_factory: ^1.0.24
- mercury_client: ^2.1.4
1.1.1 #
- Fix
MethodReflectionExtension.returnsAPIResponse.
1.1.0 #
- Added
APIModuleProxyandAPIModuleHttpProxy. - reflection_factory: ^1.0.23
- meta: ^1.7.0
1.0.39 #
- Added support to Let's Encrypt HTTPS certificates.
bones_api.dartCLI:- Allow domain static files.
APIRoot:APILogger: to allow logging ofAPIRootevents.APIRequestHandler: for personalized request handlers.- New fields
preApiRequestHandlersandposApiRequestHandlers.
- Fix
SQLAdapter.generateInsertRelationshipSQLs. - Added test tag:
slow - shelf_static: ^1.1.0
- shelf_letsencrypt: ^1.0.0
- dart_spawner: ^1.0.6
- data_serializer: ^1.0.6
- mercury_client: ^2.1.3
- build_verify: ^3.0.0
- path: ^1.8.1
- sdk: '>=2.14.0 <3.0.0'
1.0.38 #
- Fix references and naming:
postgretopostgres. APIServer: added support forGzipencoding, through packageshelf_gzip.- shelf_gzip: ^4.0.0
- reflection_factory: ^1.0.21
- data_serializer: ^1.0.3
1.0.37 #
- Added support to
Conditionoperator=~(IN). - Added support to SQL operator
IN. - postgres: ^2.4.3
- test: ^1.19.5
- dependency_validator: ^3.1.2
1.0.36 #
TypeParserandTypeInfomoved to packagereflection_factory.- reflection_factory: ^1.0.20
1.0.35 #
- Fix
TypeInfo:- Now
TypeInfohandlesTypecomparison in a special way (to keep consistence between VM and JS/Web).
- Now
1.0.34 #
- Improved
EntityHandlerresolution of fields while creating instances fromMap. - reflection_factory: ^1.0.19
1.0.33 #
Entity&EntityHandler:- Added support for enums.
- Added
enumToNameandenumFromName - reflection_factory: ^1.0.18
1.0.32 #
Json:- Integrated with
reflection_factoryJsonCodec.
- Integrated with
FieldsFromMap.getFieldsValuesFromMap: added parameterincludeAbsentFields.isAPIMethod: now ignores methods declared byAPIModule, sincereflection_factorynow supports supper classes.- reflection_factory: ^1.0.17
- postgres: ^2.4.2
- build_runner: ^2.1.5
- test: ^1.19.3
1.0.31 #
- Added
APIServer.apiInfoURL. - Updated
bones_api_template.tar.gz. - CLI
serve: fix an issue when mixing parameters-band-r.
1.0.30 #
Json.toJson:- Added parameters:
removeNullFieldsandentityHandlerProvider. - Fixed application of
removeFieldandmaskFieldover an entity.
- Added parameters:
1.0.29 #
- Improved
Json.toJson. - Added field
APIAuthentication.data. APISecurity: addedgetAuthenticationData.
1.0.28 #
- Added
API-INFOpath: describes the API routes.
1.0.27 #
- Improved resolution of
ClassReflectionEntityHandler. - Extension:
ReflectionFactory.createFromMap.ClassReflection.createFromMap.
- async_extension: ^1.0.9
- reflection_factory: ^1.0.16
1.0.26 #
- Added
APICredential,APIPasswordandAPISecurity. - Routes now can have
APIRouteRuleannotations. EntityHandler: now using also using sibling reflections to resolve.DataTime:toJsonnow converts to aUTCstring.- Added
MapMultiValueExtension. - Updated
bones_api_template.tar.gz. - reflection_factory: ^1.0.14
- crypto: ^3.0.1
1.0.25 #
- Update template:
lib/src/template/bones_api_template.tar.gz
1.0.24 #
TableFieldReferenceandTableFieldReferencenow also have the fields type.SchemeProvidernow can resolve an entity ID.- Fix
Conditionvalue when an entity is passed or referenced.
1.0.23 #
Transaction:- Added
abortto cancel the current executing transaction. - Better error handling.
- Added
- Error Zone:
runErrorZonetransformed intocreateErrorZoneand an extension withrunGuardedAsyncandasyncTry.
executeWithPool: addedvalidatorparameter.- async_extension: ^1.0.8
1.0.22 #
Condition:- Improved subfield match.
SQL:- Allow
Conditionwith fields that are a relationship table.
- Allow
MySQLAdapter:- Using
sqlElementQuote"`" to avoid issues with reserved words.
- Using
1.0.21 #
- Better handling of route parameters with
nulland empty values. - Improve example and
README.md. - mercury_client: ^2.1.1
1.0.20 #
APIRouteBuilder:- Better conversion of parameters types.
- Payload only for parameter of type
Uint8List.
APIServer:- Better handling of errors of async payloads (
Futureresolution).
- Better handling of errors of async payloads (
1.0.19 #
- Improved
SQLEntityRepositorytests. - Fixed
MemorySQLAdapter:- Ensure that relationships entries are unique.
- Update previous entity fields.
- Improved tests tags:
version,dockerandbuild.
1.0.18 #
APIResponseStatus:- Added
BAD_REQUEST.
- Added
- Added
InstanceTrackerto track entities fields changes. EntityRepository:- tracking entity fields changes.
- SQL:
- Fix update syntax.
- Improved
UPDATEto set only modified fields.
1.0.17 #
- Optimize imports.
- Fix wrong import, that was preventing to use in JS/Browser platforms.
1.0.16 #
- Better handling of
APIServererrors and logging. - Added
runErrorZonehelper. - Added logging for entity operations errors.
- reflection_factory: ^1.0.13
1.0.15 #
EntityHandler:resolveValueByTypenow can select an entity by its ID when necessary.
ClassReflectionEntityHandler:- Fixed
fieldsTypesandfindIdFieldName, to ignore fields that are final or doesn't have a setter. - Fixed use of
reflectionto ensure that current object is used.
- Fixed
- Improved tests to run
Entitytests repositories with reflection and without reflection. - reflection_factory: ^1.0.12
1.0.14 #
- Added
SQLAdapterforMySQL. - SQL:
- Improve generated SQL, to adapt to different dialects.
- Allow generation of SQL with only positional parameters (needed for MySQL).
- Improve return of DELETE, to circumvent SQL dialects without
RETURNNGandOUTPUT. - Improved supported types.
- mysql1: ^0.19.2
- docker_commander: ^2.0.13
1.0.13 #
- Added
TypeInfoto represent better types with generics. - Added
TableRelationshipReferencefor use inTableScheme. - Added
TimedMapto help with timed caches. - Added
KeyConditionINandKeyConditionNotIN. - Entities:
- Added support to relationship fields.
- Added support for List fields pointing to another entity.
SQLEntityRepository:- Added support to UPDATE.
- Added support to relationship tables.
1.0.12 #
- CLI:
- Added option
--buildto automatically build reflection files when detected by inspector. - Added commands:
create: creates abones_apibackend project tree.info: show information about thebones_apibackend project template.
- Added option
- reflection_factory: ^1.0.10
- project_template: ^1.0.2
- resource_portable: ^3.0.0
1.0.11 #
APIRequest:- Added
scheme,requesterSourceand_requesterAddress.
- Added
APIResponse:- Added metrics support (used to generate
Server-Timingheaders). - Added
setCORS.
- Added metrics support (used to generate
- Added
TypeParser, for lenient parsing of basic Dart types. - Entities:
- Better automatic conversion of types when setting entities fields.
- Added support for transactions.
- Repositories:
- Added
limitsupport for queries. - Better resolution of correct
EntityRepositoryandEntityHandlerfor a type while loading it. - Better resolution of sub-entities in fields.
- Added
- Improved tests:
- Using Docker container to test PostgreSQL adapter.
- async_extension: ^1.0.7
- reflection_factory: ^1.0.8
- docker_commander: ^2.0.12
1.0.10 #
TableScheme:- Added
getFieldsValuesandgetFieldValue.
- Added
EntityHandler: optimized fiel resolution onsetFieldsFromMap.- Improved dartdoc references.
- Improved tests.
1.0.9 #
apiMethodnow can receive anAPIRequestparameter while receiving other normal parameters.PostgreSQLAdapter: correctly resolvingidFieldNameby primary key column.- Added test to ensure that
APIRoot.VERSIONis compatible withpubspec.yaml. - Added test that uses reflection.
- Added
build_verifytest. - reflection_factory: ^1.0.7
1.0.8 #
- Added
APIConfig:- CLI now accepts a
--configoption.
- CLI now accepts a
- Rename
Dataclasses toEntity. - Added
MemorySQLAdapter. - Added
TableSchemeto helpConditionEncoder:- SQL now can perform inner join:
- Example Condition:
address.state = "NY"
- Example Condition:
- SQL now can perform inner join:
- Improved
ConditionIDencoding:- ID field name (primary key) can be resolved for each table.
#IDcan be used to point to the primary key field/column.
APIRepository&EntityRepository:- Added delete operation.
EntityHandlernow handles better fields that points to other entities.- Improved tests.
- async_extension: ^1.0.5
- reflection_factory: ^1.0.6
- yaml: ^3.1.0
- yaml_writer: ^1.0.1
- mercury_client: ^2.1.0
1.0.7 #
- Added
APIPayload.payloadFileExtension. - Added
ConditionEncoder,ConditionSQLEncoder. - Improved Data & Entity framework:
- Added
SQLDatabaseAdapterandPostgreAdapter. - Added
DataRepositorySQL.
- Added
- Added DB Adapter for PostgreSQL.
- APIServer:
- Better auto MIME Type resolution.
- Now API methods can return
FutureOr<APIResponse>. - mime: ^1.0.0
1.0.6 #
- CLI Hot Reload fixed:
- Avoid reload of main Isolate (bones_api CLI), since API is spawned in its own Isolate.
DataEntity:- Added
fieldsNames.
- Added
DataHandlerProvider:- Fixed
getDataHandler.
- Fixed
- Added
EntityDataHandlerandDataRepositoryProvider.
1.0.5 #
- Added integration with
ReflectionFactory.- Routes can be configured using a
reflectionobject.
- Routes can be configured using a
APIServer:- Added support to Dart VM Hot Reload.
- CLI
bones_api:- Added flag
--hotreloadto serve the API with Hot Reload enabled.
- Added flag
- Added
DataEntityandDataHandlerframework - Added
Condition:- Allow queries using a syntax similar to Dart.
- New
APIRepository, to allow database agnostic integration. - dart_spawner: ^1.0.5
- reflection_factory: ^1.0.4
- args: ^2.2.0
- petitparser: ^4.2.0
- hotreloader: ^3.0.1
- logging: ^1.0.1
- collection: ^1.15.0
- lints: ^1.0.1
1.0.4 #
- CLI
bones_api:- Added command
console. - Command
serve: added headerContent-Type.
- Added command
- Added
Argumentstool. - Added
APIRequest.fromArgsandAPIRequest.fromArgsLine. - Added
APIRequest/APIResponsepayloadMimeType.
1.0.3 #
APIServer:- Added
createandrunhelpers.
- Added
1.0.2 #
APIServer:- Add
isStoppedandwaitStopped(). - Removed
isClosed.
- Add
- Fix
PATCHmethod. - CLI:
- Improved serve console logging.
- Using
dart_spawnerto spawn/run anAPI. - dart_spawner: ^1.0.2
- Removed
yaml: ^3.1.0
1.0.1 #
- Improve documentation.
- Fix typo.
1.0.0 #
- CLI:
bones_apiwithservecommand. - Initial version.