All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- #425 - Extend CarbonLDPSettings object to configure an exposed domain different from the data domain.
- #423 - Add support for new
c:ExecutableQueryDocuments
andc:ExecutableQuery
interaction model to act as executable queries (stored procedures). - #376 - Add doc comments to the types files
- #378 - Allow pagination and ordering of multiple
$get()
documents- The pagination sub-select (that may repeat the entire query) will now only be added when pagination (
limit()
,offset()
) and/or sorting (orderBy()
) are used. This also applies to the$getChildren()
and$getMembers()
methods
- The pagination sub-select (that may repeat the entire query) will now only be added when pagination (
- #397 - Update to [email protected]
- #360 - Fix
$IDAlreadyInUseError
error when executingonChildCreated
using real-time capabilities and when requesting a$get
of a non-existent resource - #391 - Adding properties with
undefined
,null
and/or[]
(empty array) triggers a patch request on save, even though this doesn't represent RDF changes - #392 - Assigning a property that only wraps its previous value into an array triggers a patch request on save, even though this doesn't represent RDF changes
5.2.0 - 2019-04-10
- #336 - Support TypeScript's strict mode
- #345 - Support for TypeScript 3.2
- #337 - Retrieve all properties of a document with additional sub-properties
Example:
carbonldp.documents.$get( "posts/a-post/", _ => _ .properties( _.all ) .properties( { "comments": { "query": _ => _ .properties( { "author": _.inherit, "content": _.inherit, } ), }, } ) );
- Improve bundle size using rollup
- #338 - Fix
$removeMember()
/$removeMembers()
in Node.js - #366 - Fix error in bundle with undefined
global
variable - #368 - Fix ignore of
_.withType()
filter when used along_.properties( _.all )
5.1.0 - 2018-12-06
- #332 - Retrieve multiple documents using the
$get
method
Example:
// Retrieve them with all their properties carbonldp.documents.$get( [ "posts/post-634534/", "posts/post-875623/" ] ); // Selectively retrieve parts of them, nested documents, etc. carbonldp.documents.$get( [ "posts/post-634534/", "posts/post-875623/" ], _ => _ .properties( { "title": _.inherit, "content": _.inherit, "comments": { "query": _ => _ .properties( { "author": _.inherit, "content": _.inherit, } ), }, } ) );
- #331 - Add distribution files for
esm5
andesm2015
targets so modern environments can use modern code - #275 - Add
tslib
as a dependency to reduce library size - #306 - Parse errors returned by the platform when executing SPARQL queries
- #319 - Configure properties as required when querying documents
Example:
carbonldp.documents.$get( "project/", _ => _.properties( { "property": { "@id": "ex:title", "@type": "string", "required": true, } } ) );
- #324 -
QueryDocumentsBuilder.all
not retrieving properties that aren't defined in the object schemas - #325 - Properties defined on a document query that were not defined in the object schema aren't being retrieved
- #307 - Not passing an onError callback to an event listener (e.g.
subscribe
), causes the SDK to throw an undefined error on subscription errors - #314 - Pieces of documentation are not being rendered
5.0.0 - 2018-09-22
New version out! This version brings structural changes to the SDK so for more information please check out [https://carbonldp.com/5.0.x/javascript-sdk/].