Skip to content
Closed
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
## 1.35.0

Conditions and SQL generation clean-up (behavior-preserving, the same SQL):

- `Condition`: the ordering comparisons (`>`, `>=`, `<`, `<=`) written once
(a private enum and a private base of the `KeyCondition{GreaterThan,...}`
classes; public API unchanged); `KeyCondition.encodeValue` in the base
class; `ConditionParameter.matchesIn` resolves its parameters once.
- `EncodingContext.parameterValue`; `isReservedWord` by a set;
`ConditionSQLEncoder.qualifiedColumnSQL` and shared ID/empty-set helpers.
- `SQLDialect.qualifiedColumnSQL`; `SQLGenerator.uniqueConstraintName`,
`indexName`, `foreignKeyName` and `relationshipTableName` (the names of
the generated indexes, constraints and relationship tables, in one place).
- `DBSQLAdapter`: the table check (`_checkDBTableScheme`), the relationship
SQL generators and the `JOIN`s split into documented helpers.
- `DBSQLMemoryAdapter`: one select matcher; shared delete helpers.
- `APIDBModule.select`: directives, table and pagination helpers.
- Cache fields named `*Cache` and documented.

Fixes:

- `Condition.parse`: an escaped quote in a single-quoted string
(`name == 'a\'b'`) failed to parse.
- `SQLDialect.toString`: lists all its fields (and a missing space).
- `APIDBModule.select`: the entities' values are HTML-escaped in its page
(they were written as is: a `<` or `&` broke the page, and could inject
markup).

## 1.34.0

`null` and `[]` mean the same in a condition: an empty set for `=~`/`!~`, a
Expand Down
2 changes: 1 addition & 1 deletion lib/src/bones_api_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ typedef APILogger = void Function(
/// Bones API Library class.
class BonesAPI {
// ignore: constant_identifier_names
static const String VERSION = '1.34.0';
static const String VERSION = '1.35.0';

static bool _boot = false;

Expand Down
Loading
Loading