changelogs.md


carbonldp/carbonldp-js-sdk

Repository  -  API  -  Source

5.2.0

April 10, 2019

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

December 6, 2018

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

September 22, 2018

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