Skip to content

Latest commit

 

History

History
124 lines (98 loc) · 5.83 KB

CHANGELOG.md

File metadata and controls

124 lines (98 loc) · 5.83 KB

Changelog

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.

Added

  • #425 - Extend CarbonLDPSettings object to configure an exposed domain different from the data domain.
  • #423 - Add support for new c:ExecutableQueryDocuments and c: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
  • #397 - Update to [email protected]

Fixed

  • #360 - Fix $IDAlreadyInUseError error when executing onChildCreated 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

Added

  • #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

Fixed

  • #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

Added

  • #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 and esm2015 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,
         }
     } ) );

Fixes

  • #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/].