All notable changes to the Ditto JavaScript client will be documented in this file.
TODO text
TODO text
TODO text
No changes comparing to 2.3.0 were done.
No changes comparing to 2.2.0 were done.
The ws
dependency used in the node
package was updated to the latest version in major version 7: 7.5.5
in order
to fix a critical bug in the previously used version 7.1.2
which was fixed in 7.4.6
.
Fixes #155: Fixed connections via http:
protocol, which used the wrong library and proxy agent. Also added a new option
ignoreProxyFromEnv
to ProxyOptions
, which allows disabling the automatic configuration of the proxy if
the respective environment variables are found (HTTPS_PROXY
or HTTP_PROXY
).
Fixes #157 (1/2): The search options for search requests were encoded twice before a request and thus caused an error
for order options like +thingId
.
Fixes #157 (2/2): Fixes a bug, that the node client wasn't sending query params to the backend at all.
The api module isn't published to npm any long. The node and dom module don't contain the Ditto version in their name any longer, but are bound to the Ditto version itself (and thus have the same version numbers as Ditto).
Removes all API 1 related code from the client (namely ACLs and the API 1 builders).
Fixes #114: Refactor model structure to avoid "duplicated paths" like features.features
for all entities inheriting from IndexedEntityModel
and simplify type generics.
Fixes #61: Ditto will return an empty body with status 204
for PUT
requests on already existing things.
This was not handled correctly by the client.
Fixes #127: Adds the definition
field to the Thing representation and adds methods for retrieving, updating
and deleting the definition of a Thing.
Adds a new builder step for the client, which allows setting a custom path instead of the default /api
or /ws
.
Adds basic support for Metadata
in the Thing
model. Does not yet allow setting metadata from the client.
Fixes #123: Fixes the serialization of booleans and numbers in filters.
Adds the _created
field to the Thing
model.
Update vulnerable dependencies as suggested by npm audit
DittoDomClient
andDittoNodeClient
: The builder stepsapiVersion1()
andapiVersion2()
were removed completely.- Module
@eclipse-ditto/ditto-javascript-client-api_1.0
was removed completely and is no longer needed for using the client. - Module
@eclipse-ditto/ditto-javascript-client-node_1.0
was renamed to@eclipse-ditto/ditto-javascript-client-node
- Module
@eclipse-ditto/ditto-javascript-client-dom_1.0
was renamed to@eclipse-ditto/ditto-javascript-client-dom
Acl
and all subclasses: Removed completely.Features
: Needs to be accessed usingthing.features
instead ofthing.features.features
Features
:toObject
instance method was removed. UseFeatures#toObject
andFeatures#fromObject
instead.Entries
: Needs to be accessed usingpolicy.entries
instead ofpolicy.entries.entries
Entries
:toObject
instance method was removed. UseEntries#toObject
andEntries#fromObject
instead.Resources
: Needs to be accessed usingpolicy.entries.<entryId>.resources
instead ofpolicy.entries.<entryId>.resources.resources
Resources
:toObject
instance method was removed. UseResources#toObject
andResources#fromObject
instead.Subjects
: Needs to be accessed usingpolicy.entries.<entryId>.subjects
instead ofpolicy.entries.<entryId>.subjects.subjects
Subjects
:toObject
instance method was removed. UseSubjects#toObject
andSubjects#fromObject
instead.IndexedEntityModel
: The signature of some methods have been changed, see e.g.Features
on how to update custom implementations to the new format.
Adds a new AuthProvider
implementation to allow authentication with a Bearer token.
Fixes: #93: Fixes bug where node http client was connecting using the proxy agent, even if it was not set.