All notable changes to the Ditto JavaScript client will be documented in this file.
No dependencies were explicitly updated.
Neither features nor bug fixes were added.
No dependencies were explicitly updated.
PR #228 fixes the content-type which was set wrongly for methods postCount()
and postSearch()
No dependencies were explicitly updated.
PR #226 adds support for performing search via HTTP POST
verb to the Ditto JS client
No dependencies were explicitly updated.
None in this release.
No dependencies were explicitly updated.
None in this release.
No dependencies were explicitly updated.
PR #219 adds the in Ditto 3.2.0 added ilike
RQL (search) predicate to the Ditto JS client
No dependencies were explicitly updated.
PR #208 adds support for merge/patch functionality to the Ditto JS client.
No dependencies were explicitly updated.
As per the documentation,
pagination via the limit
parameter is deprecated and might get removed in the future.
PR #208 adds support for cursor pagination to the JS client so applications using the client can use the new
pagination style.
No dependencies were explicitly updated.
The released Ditto JavaScript client 3.0.0 did not work in Typescript projects.
PR #203 provides a fix for that.
No dependencies were explicitly updated.
Error handling for the Ditto JavaScript client did not return the status code.
And if the error response was not JSON formatted, the error could not be parsed and undefined
was resolved as error
.
This has been fixed by adding an ErrorResponse which is returned instead:
interface ErrorResponse {
/** The status code of the error response. */
status: number;
/** The body of the error response. */
body: any;
/** The headers of the error response inside a map. */
headers: Map<string, string>;
}
The DittoHeaders
of a message were not preserved when subscribing to consume messages via the Ditto JavaScript client.
Without access to the headers and the contained correlation-id
it was not possible to send back a correlated
response message.
This has been fixed. The headers are now available when e.g. using the API in such a way:
const messages = client.getMessagesHandle();
await messages.requestMessages();
messages.subscribeToThing(thingId, (msg) => {
console.log(msg.headers);
console.log(msg);
});
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.