All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
5.0.1 (2022-01-11)
Note: Version bump only for package @loopback/example-todo
5.0.0 (2021-11-18)
- drop support for Node.js v10 (9bcbbb3)
- support Node.js v17 (8d86c03)
- upgrade to TypeScript 4.5.2 (72ece91)
- drop support for Node.js v10
Co-authored-by: Francisco Buceta frbuceta@gmail.com Signed-off-by: Rifa Achrinza 25147899+achrinza@users.noreply.github.com
4.0.2 (2021-10-18)
Note: Version bump only for package @loopback/example-todo
4.0.1 (2021-09-16)
Note: Version bump only for package @loopback/example-todo
4.0.0 (2021-07-15)
- rest: We upgrade to ajv@8.x, which contains breaking changes for validations. See https://github.com/ajv-validator/ajv/blob/master/docs/v6-to-v8-migration.md.
Signed-off-by: Raymond Feng enjoyjava@gmail.com
3.11.1 (2021-06-10)
Note: Version bump only for package @loopback/example-todo
3.11.0 (2021-05-03)
- support node v16 (ac99415)
3.10.1 (2021-04-06)
Note: Version bump only for package @loopback/example-todo
3.10.0 (2021-03-18)
3.9.4 (2021-02-09)
Note: Version bump only for package @loopback/example-todo
3.9.3 (2021-01-21)
Note: Version bump only for package @loopback/example-todo
3.9.2 (2020-12-07)
Note: Version bump only for package @loopback/example-todo
3.9.1 (2020-11-18)
Note: Version bump only for package @loopback/example-todo
3.9.0 (2020-11-05)
- filter: allow use an array in filter.fields (ec386c1)
- rest: further sanitize json parsing by rejecting prohibited keys (b38f0fd)
3.8.0 (2020-10-07)
- cli: build before migrate and openapi-spec (b1d0bd6)
3.7.4 (2020-09-17)
Note: Version bump only for package @loopback/example-todo
3.7.3 (2020-09-15)
Note: Version bump only for package @loopback/example-todo
3.7.2 (2020-08-27)
3.7.1 (2020-08-19)
Note: Version bump only for package @loopback/example-todo
3.7.0 (2020-08-05)
- switch to middleware based sequence for examples (b664a41)
- example-todo: switch to middleware based sequence (a8e49c6)
3.6.2 (2020-07-20)
- ensure delete only applies to optional properties (89cd43f)
3.6.1 (2020-06-30)
Note: Version bump only for package @loopback/example-todo
3.6.0 (2020-06-23)
- set node version to >=10.16 to support events.once (e39da1c)
- update sequence.ts to invoke middleware (e2ff6b2)
3.5.1 (2020-06-11)
Note: Version bump only for package @loopback/example-todo
3.5.0 (2020-05-28)
- add
npm run openapi-spec
to export the openapi spec (dca78e1)
3.4.1 (2020-05-20)
Note: Version bump only for package @loopback/example-todo
3.4.0 (2020-05-19)
- upgrade to TypeScript 3.9.x (3300e45)
3.3.0 (2020-05-07)
- example-todo: add morgan middleware if env var DEBUG is set (4457495)
3.2.0 (2020-04-29)
- move datasource config from JSON to TS files (6105456)
3.1.3 (2020-04-23)
Note: Version bump only for package @loopback/example-todo
3.1.2 (2020-04-22)
Note: Version bump only for package @loopback/example-todo
3.1.1 (2020-04-11)
Note: Version bump only for package @loopback/example-todo
3.1.0 (2020-04-08)
- support any type (03ce221)
3.0.2 (2020-03-24)
- update package locks (cd2f6fa)
3.0.1 (2020-03-17)
Note: Version bump only for package @loopback/example-todo
3.0.0 (2020-03-05)
- remove ref for v4.loopback.io (78f20c0)
- example-todo: throw if geocode address is not found (72d2035)
- remove support for Node.js v8.x (4281d9d)
- add
tslib
as dependency (a6e0b4c), closes #4676 - use @param.filter and @param.where decorators (896ef74)
- Node.js v8.x is now end of life. Please upgrade to version 10 and above. See https://nodejs.org/en/about/releases.
2.0.0 (2020-02-06)
- suport complex objects for query params in api explorer (a4ef640)
- This fix has modified the api definitions described by the decorator
'param.query.object', to support Open-API's
url-encoded
definition for json query parameters.
Previously, such parameters were described with exploded: true
and
style: deepObject
, i.e exploded encoding, which turned out to be problematic as explained and discussed in,
swagger-api/swagger-js#1385 and
OAI/OpenAPI-Specification#1706
{
"in": "query",
"style": "deepObject"
"explode": "true",
"schema": {}
}
Exploded encoding worked for simple json objects as below but not for complex objects.
http://localhost:3000/todos?filter[limit]=2
To address these issues with exploded queries, this fix switches definition of json
query params from the exploded
, deep-object
style to the url-encoded
style
definition in Open-API spec.
LoopBack already supports receiving url-encoded payload for json query parameters.
For instance, to filter api results from the GET '/todo-list' endpoint in the todo-list example with a specific relation, { "include": [ { "relation": "todo" } ] }, the following url-encoded query parameter can be used,
http://localhost:3000/todos?filter=%7B%22include%22%3A%5B%7B%22relation%22%3A%22todoList%22%7D%5D%7D
The above was possible because the coercion behavior in LoopBack performed json
parsing for deep object
style json query params before this fix. This fix has
modified that behavior by removing json parsing. Since the exploded
deep-object
definition has been removed from the param.query.object
decorator, this new
behaviour remains just an internal source code aspect as of now.
In effect, this fix only modifies the open api definitions generated from LoopBack APIs. The 'style' and 'explode' fields are removed and the 'schema' field is moved under 'content[application/json]'. This is the definition that supports url-encoding as per Open-API spec.
{
"in": "query"
"content": {
"application/json": {
"schema": {}
}
}
}
Certain client libraries (like swagger-ui or LoopBack's api explorer) necessiate
using Open-API's url-encoded
style definition for json query params to support
"sending" url-encoded payload.
All consumers of LoopBack APIs may need to regenerate api definitions, if their client libraries require them to do so for url-encoding.
Otherwise there wouldn't be any significant impact on API consumers.
To preserve compatibility with existing REST API clients, this change is backward
compatible. All exploded queries like ?filter[limit]=1
will continue to work for
json query params, despite the fact that they are described differently in the
OpenAPI spec.
Existing api clients will continue to work after an upgrade.
The signature of the 'param.query.object' decorator has not changed.
There is no code changes required in the LoopBack APIs after upgrading to this fix. No method signatures or data structures are impacted.
1.9.6 (2020-02-05)
- update clean script for examples to be compatible with
lb4 example
(d9f5741)
1.9.5 (2020-01-27)
- cli: reject datasources with no name property for service generator (cc871e5)
- example-todo: use latest cli code (a1f83f8)
1.9.4 (2020-01-07)
Note: Version bump only for package @loopback/example-todo
1.9.3 (2020-01-07)
Note: Version bump only for package @loopback/example-todo
1.9.2 (2019-12-09)
Note: Version bump only for package @loopback/example-todo
1.9.1 (2019-11-25)
Note: Version bump only for package @loopback/example-todo
1.9.0 (2019-11-12)
- cli: generate datasource json with '.config.json` extension (51d8f7b)
1.8.4 (2019-10-24)
Note: Version bump only for package @loopback/example-todo
1.8.3 (2019-10-07)
Note: Version bump only for package @loopback/example-todo
1.8.2 (2019-09-28)
Note: Version bump only for package @loopback/example-todo
1.8.1 (2019-09-27)
Note: Version bump only for package @loopback/example-todo
1.8.0 (2019-09-17)
- use descriptive title to describe schema of POST (create) request bodies (8f49a45)
1.7.6 (2019-09-06)
Note: Version bump only for package @loopback/example-todo
1.7.5 (2019-09-03)
Note: Version bump only for package @loopback/example-todo
1.7.4 (2019-08-19)
Note: Version bump only for package @loopback/example-todo
1.7.3 (2019-08-15)
Note: Version bump only for package @loopback/example-todo
1.7.2 (2019-08-15)
- repository-json-schema: make exclude option reject properties (35027c4)
1.7.1 (2019-07-31)
Note: Version bump only for package @loopback/example-todo
1.7.0 (2019-07-26)
- update examples and docs to use getModelSchemaRef (99758b1)
1.6.6 (2019-07-17)
- example-todo: exclude id from POST request body (296ac6c)
1.6.5 (2019-06-28)
- example-todo: allow partial updates via PATCH (cff8189)
1.6.4 (2019-06-21)
- update sample todo and todo-lists (99d3aa0)
1.6.3 (2019-06-20)
Note: Version bump only for package @loopback/example-todo
1.6.2 (2019-06-17)
- remove forgotten references to tslint (faa0a92)
1.6.1 (2019-06-06)
Note: Version bump only for package @loopback/example-todo
1.6.0 (2019-06-03)
1.5.15 (2019-05-31)
Note: Version bump only for package @loopback/example-todo
1.5.14 (2019-05-30)
Note: Version bump only for package @loopback/example-todo
1.5.13 (2019-05-23)
Note: Version bump only for package @loopback/example-todo
1.5.12 (2019-05-14)
Note: Version bump only for package @loopback/example-todo
1.5.11 (2019-05-10)
Note: Version bump only for package @loopback/example-todo
1.5.10 (2019-05-09)
Note: Version bump only for package @loopback/example-todo
1.5.9 (2019-05-06)
Note: Version bump only for package @loopback/example-todo
1.5.8 (2019-04-26)
Note: Version bump only for package @loopback/example-todo
1.5.7 (2019-04-20)
Note: Version bump only for package @loopback/example-todo
1.5.6 (2019-04-11)
Note: Version bump only for package @loopback/example-todo
1.5.5 (2019-04-09)
Note: Version bump only for package @loopback/example-todo
1.5.4 (2019-04-05)
Note: Version bump only for package @loopback/example-todo
1.5.3 (2019-03-22)
Note: Version bump only for package @loopback/example-todo
1.5.2 (2019-03-22)
Note: Version bump only for package @loopback/example-todo
1.5.1 (2019-03-12)
Note: Version bump only for package @loopback/example-todo
1.5.0 (2019-03-01)
- add express example (dd2400e)
1.4.4 (2019-02-25)
Note: Version bump only for package @loopback/example-todo
1.4.3 (2019-02-08)
- example-todo: "npm run migration" script path (a54fbf1)
1.4.2 (2019-01-28)
Note: Version bump only for package @loopback/example-todo
1.4.1 (2019-01-15)
Note: Version bump only for package @loopback/example-todo
1.4.0 (2019-01-14)
- always include tslint and typescript in project dev-dependencies (e0df285)
1.3.1 (2018-12-20)
Note: Version bump only for package @loopback/example-todo
1.3.0 (2018-12-13)
- repository: migrateSchema APIs (ad0229b)
- scaffold DB migration script for new app projects (f783f07)
1.2.2 (2018-11-26)
Note: Version bump only for package @loopback/example-todo
1.2.1 (2018-11-17)
Note: Version bump only for package @loopback/example-todo
1.2.0 (2018-11-17)
- an extension adding a self-hosted REST API Explorer (4c165c7)
1.1.1 (2018-11-14)
Note: Version bump only for package @loopback/example-todo
1.1.0 (2018-11-08)
- change unmatched html tags, remove redundant 'px' from 0 (46d08f6)
- update usage of
x-ts-type
for schemas (57c694e)
- cli: use app.static for default home page (1dcf169)
1.0.1 (2018-10-17)
Note: Version bump only for package @loopback/example-todo
0.22.0 (2018-10-08)
- use resolveJsonModule to load datasource config (73e19ff)
0.21.2 (2018-10-06)
Note: Version bump only for package @loopback/example-todo
0.21.1 (2018-10-05)
Note: Version bump only for package @loopback/example-todo
0.21.0 (2018-10-03)
- clean up dataSource usage (69506a4)
- testlab: add StubbedInstanceWithSinonAccessor (1dc2304)
0.20.2 (2018-09-28)
Note: Version bump only for package @loopback/example-todo
0.20.1 (2018-09-27)
Note: Version bump only for package @loopback/example-todo
0.20.0 (2018-09-25)
- add "filter" parameter to "find" endpoints (7e1acfc)
0.19.0 (2018-09-21)
- testlab: add createRestAppClient(), simplify usage in tests (d75be77)
- testlab: set port to 0 in givenHttpServerConfig (90a0bfb)
0.18.0 (2018-09-19)
- rest: return 404 when a model was not found (7a56bad)
- repository: rework *ById methods to throw if id not found (264f231)
0.17.6 (2018-09-17)
- example-todo: fix typo in README (e56dcc5)
0.17.5 (2018-09-14)
Note: Version bump only for package @loopback/example-todo
0.17.4 (2018-09-14)
Note: Version bump only for package @loopback/example-todo
0.17.3 (2018-09-14)
- example-todo: add responses to controllers (a7fc210)
0.17.2 (2018-09-12)
Note: Version bump only for package @loopback/example-todo
0.17.1 (2018-09-10)
Note: Version bump only for package @loopback/example-todo
0.17.0 (2018-09-08)
- remove extra imports for mixin dependencies (35b916b)
- service-proxy: add service mixin (fb01931)
0.16.3 (2018-08-25)
Note: Version bump only for package @loopback/example-todo
0.16.2 (2018-08-24)
Note: Version bump only for package @loopback/example-todo
0.16.1 (2018-08-20)
Note: Version bump only for package @loopback/example-todo
0.16.0 (2018-08-15)
- add two simple benchmarks (5066cdf)
0.15.0 (2018-08-08)
- cli: install dependencies for clones examples (5774f1f)
- service-proxy: await datasource until it connects to the service (714344b)
- cli: use
app.restServer.url
for console logs (f31160c)
0.14.2 (2018-07-21)
Note: Version bump only for package @loopback/example-todo
0.14.1 (2018-07-20)
Note: Version bump only for package @loopback/example-todo
0.14.0 (2018-07-20)
- example-todo-list: add TodoList package/tutorial (306d437)
0.13.3 (2018-07-13)
- example-todo: correct todo-overview image link (afb5a66)
0.13.2 (2018-07-11)
Note: Version bump only for package @loopback/example-todo
0.13.1 (2018-07-10)
- docs: fix example-todo diagram link (b2fe27c)
0.13.0 (2018-07-09)
- body validation (d284ad8)
0.12.5 (2018-06-28)
Note: Version bump only for package @loopback/example-todo
0.12.4 (2018-06-27)
Note: Version bump only for package @loopback/example-todo
0.12.3 (2018-06-26)
Note: Version bump only for package @loopback/example-todo
0.12.2 (2018-06-25)
Note: Version bump only for package @loopback/example-todo
0.12.1 (2018-06-25)
Note: Version bump only for package @loopback/example-todo
0.12.0 (2018-06-20)
0.11.4 (2018-06-11)
Note: Version bump only for package @loopback/example-todo
0.11.3 (2018-06-09)
Note: Version bump only for package @loopback/example-todo
0.11.2 (2018-06-09)
Note: Version bump only for package @loopback/example-todo
0.11.1 (2018-06-09)
Note: Version bump only for package @loopback/example-todo
0.11.0 (2018-06-08)
- cli: add vscode config files (3738b9c)
0.10.1 (2018-05-28)
- clone the test folder for examples (00688ea)
0.10.0 (2018-05-23)
- cli: add CLI prompt for controller's http path name (0f9c438)
0.9.4 (2018-05-20)
Note: Version bump only for package @loopback/example-todo
0.9.3 (2018-05-14)
- change index.d.ts files to point to dist8 (42ca42d)
- update example scripts and files in package.json (65f5d52)
0.9.2 (2018-05-14)
Note: Version bump only for package @loopback/example-todo
0.9.1 (2018-05-08)
Note: Version bump only for package @loopback/example-todo
0.9.0 (2018-05-03)
- add helper package "dist-util" (532f153)
0.8.0 (2018-05-03)
- add helper package "dist-util" (532f153)
0.7.3 (2018-04-26)
Note: Version bump only for package @loopback/example-todo
0.7.2 (2018-04-26)
Note: Version bump only for package @loopback/example-todo
0.7.1 (2018-04-25)
Note: Version bump only for package @loopback/example-todo
0.7.0 (2018-04-16)
Note: Version bump only for package @loopback/example-todo
0.6.3 (2018-04-16)
Note: Version bump only for package @loopback/example-todo
0.6.2 (2018-04-12)
Note: Version bump only for package @loopback/example-todo
0.6.1 (2018-04-11)
Note: Version bump only for package @loopback/example-todo
0.6.0 (2018-04-11)
- change file names to fit advocated naming convention (0331df8)
- repository: have @repository take in constructor as arg (3db07eb)
0.5.3 (2018-04-06)
Note: Version bump only for package @loopback/example-todo
0.5.2 (2018-04-04)
Note: Version bump only for package @loopback/example-todo
0.5.1 (2018-04-02)
Note: Version bump only for package @loopback/example-todo
- renamed example-getting-started to example-todo (7a09f1b)
- example-getting-started is now example-todo
0.4.1 (2018-03-23)
- example-getting-started: remove old model from sample data (4fee3b1)
- example-getting-started: sync code and docs (5f54b96)
0.4.0 (2018-03-21)
- rest: expose app.requestHandler function (20a41ac)
- rest:
RestServer#handleHttp
was renamed toRestServer#requestHandler
.
0.3.4 (2018-03-14)
Note: Version bump only for package @loopback/example-getting-started
0.3.3 (2018-03-13)
Note: Version bump only for package @loopback/example-getting-started
0.3.2 (2018-03-08)
Note: Version bump only for package @loopback/example-getting-started
0.3.1 (2018-03-07)
Note: Version bump only for package @loopback/example-getting-started
0.3.0 (2018-03-06)
- fix typo of
additional
(2fd7610)
- upgrade from swagger 2 to openapi 3 (71e5af1)
0.2.0 (2018-03-01)
Note: Version bump only for package @loopback/example-getting-started
0.1.2 (2018-03-01)
- repository: add datasource method in repository mixin (85347fa)
- add repository booter (#1030) (43ea7a8)
0.1.1 (2018-02-23)
Note: Version bump only for package @loopback/example-getting-started
0.1.0 (2018-02-21)
- example-getting-started: correct spacing on navigation sections (0dde314)
1.0.1-alpha.7 (2018-02-15)
- example-getting-started: remove juggler warning (86139f6)
- example-getting-started: use sinon from testlab (#984) (09fc791)
1.0.1-alpha.6 (2018-02-07)
- build: fix tslint config and slipped violations (22f8e05)
- example-getting-started: update readme to use RestApplication (#961) (b3e2c0e)
- example-getting-started: use RestApplication (#955) (3829878)
- use parameter level decorators for openapi params (c29dd19)
- Support for Node.js version lower than 8.0 has been dropped. Please upgrade to the latest Node.js 8.x LTS version.
Co-Authored-by: Taranveer Virk taranveer@virk.cc
1.0.1-alpha.5 (2018-02-04)
Note: Version bump only for package @loopback/example-getting-started
1.0.1-alpha.4 (2018-01-30)
Note: Version bump only for package @loopback/example-getting-started
1.0.1-alpha.3 (2018-01-29)
Note: Version bump only for package @loopback/example-getting-started
1.0.1-alpha.2 (2018-01-26)
Note: Version bump only for package @loopback/example-getting-started
1.0.1-alpha.1 (2018-01-26)
- apply source-maps to test errors (76a7f56), closes #602
- make mocha self-contained with the source map support (7c6d869)
- example-getting-started: migrate into monorepo (9478d8b)