diff --git a/CHANGELOG.md b/CHANGELOG.md index c0253314..6fe8f1e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). - Type for special error listener `srv.on('error')` +### Changed + +- `source`, `column_expr`, and `predicate` have been converted to partial intersection types. This offers all possible optional properties. You will have to make sure to check their presence when accessing them + ### Fixed - `srv.send` overload to also allow optional headers @@ -17,13 +21,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). - `cds.builtin.types` got a more accurate type - The `LinkedEntity.drafts` property is now optional. At runtime, it's only set for drafted entities. - `cds.model` is marked as modifiable (for tests only!) +- `SELECT.from` got its `ref` property back ## Version 0.1.0 - 2023-12-13 ### Changed -- Rework of the export structure of the main `cds` facade object, so that e.g. `cds.Request` and `cds.User` work again. +- Rework of the export structure of the main `cds` facade object, so that e.g. `cds.Request` and `cds.User` work again ### Fixed diff --git a/apis/cqn.d.ts b/apis/cqn.d.ts index 539d355f..35bec7e5 100644 --- a/apis/cqn.d.ts +++ b/apis/cqn.d.ts @@ -1,4 +1,5 @@ import { entity } from './csn' // cyclic dependency +import { UnionToIntersection, UnionsToIntersections } from './internal/inference' // FIXME: a union type would be more appropriate here export type Query = Partial