Releases: CiscoM31/godata
v1.0.11
What's Changed
Improve geo spacial query support
- Support geo.distance() and geo.intersects() queries
- Add support for Edm.GeographyPoint type
Changes to existing behavior
- Treat geo.intersects() function as having a boolean return value. fixes prior bug where it was treated as non-boolean
- Change parsing of Edm.GeographyPoint literal to parse into Token.Value as string ' '
- Change parsing of Edm.GeographyPolygon and Edm.GeometryPolygon literal to parse into Token.Value as string ' , ...'
Full Changelog: v1.0.10...v1.0.11
v1.0.10
What's Changed
Add additional $select and $expand query validation
- Disallow $ symbol in $select statement
- Disallow empty path segments in $expand statement.
Full Changelog: v1.0.9...v1.0.10
v1.0.9
What's Changed
*Support 'case' statement as defined at https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html#sec_case. This PR's implementation supports up to 10 cases in the case statement.
The parse-tree representation of 'case' is a node of type ExpressionTokenCase, containing a list of ExpressionTokenCasePair nodes, one for each colon-delimited expression pair. Each ExpressionTokenCasePair node has two children. Child 0 is the boolean expression and child 1 is the value expression.
Full Changelog: v1.0.8...v1.0.9
v1.0.8
What's Changed
- Each $compute item specifies the name of a new field to be created in the response schema. Permit field nesting by supporting the path separator / for the computed field name.
- Fix splitting of $compute parameter based on comma separator. The existing implementation incorrectly split on all commas including those located within a single $compute item such as to separate function arguments.
Full Changelog: v1.0.7...v1.0.8
Disallow extraneous commas in $expand $select $orderby query options
What's Changed
- Disallow extraneous commas when the ComplianceIgnoreInvalidComma compliance flag is set in the Go context (ie ctx function argument in the godata.ParseRequest() function). See PR for additional details.
Full Changelog: v1.0.6...v1.0.7
v1.0.6
What's Changed
- Add support for $compute.
- Add support for custom functions within odata query (functions introduced by application using godata package).
- Introduce implementation interface as abstraction for types GoDataQuery and ExpandItem.
Full Changelog: v1.0.5...v1.0.6
v1.0.5
What's Changed
- Add support for expressions in $orderby query option by @sebastien-rosset in #28
- Fix $orderby parsing issue by @migoff875 in #30
- Fix linter gosimple issue by @migoff875 in #31
- Improve handling of invalid expressions by @sebastien-rosset in #32
- Add code comments by @sebastien-rosset in #33
- add context argument by @sebastien-rosset in #34
New Contributors
- @migoff875 made their first contribution in #30
Full Changelog: v1.0.4...v1.0.5
Fix tokenization of empty string token in filter
Merge pull request #27 from CiscoM31/empty-token Fix tokenization of empty token
Fix static analysis issues identified by golangci-lint
- Add missing error handling
- Fix static analysis issues
Fix go module name
Merge pull request #25 from CiscoM31/fix-go-mod fix module name in go.mod