Skip to content

Latest commit

 

History

History
139 lines (80 loc) · 5.45 KB

CHANGELOG.md

File metadata and controls

139 lines (80 loc) · 5.45 KB

31.10.2 (2021-11-18)

Bug Fixes

  • noop: trigger release due to failed auth (a0626b9)

31.10.1 (2021-11-17)

Bug Fixes

  • spread options to requestOptions (8151af1)
  • api: allow override of content-type in update() when value is string (af2eccb)
  • datastore: explicitly set content-type when updating' (1a4892b)

31.10.0 (2021-04-07)

Features

  • json: treat access collection as non-model collections (67bc88d)

31.9.3 (2021-03-24)

Bug Fixes

  • only pass fixed dimensions as dimension for data value sets (DHIS2-9789) (f99e1e9), closes #776

31.9.2 (2021-03-22)

Bug Fixes

  • remove encoding of query string for analytics requests DHIS2-10722 (#284) (c810235)
  • remove unused import (#285) (6e1a408)

31.9.1 (2021-03-09)

Bug Fixes

  • current-user: add getUserGroupIds, allow custom fields in getUserGroups (DHIS2-10625) (#280) (d3e84a6)

31.9.0 (2020-12-11)

Bug Fixes

  • allow uid for org unit levels (18a86f8)

Features

D2 Changelog

31.6.0

March 7th 2019

Breaking changes:

31.5.0

February 28th 2019

Breaking changes:

  • Changed from babel es2015 and stage-2 presets to babel-preset-env, so for certain browsers support might have changed. Though currently the support is aligned with our supported browsers.

Bugfix:

  • Fixed usage of isomorphic-fetch, to allow for usage of d2 in node and the browser.

30.1.0

February 15th 2019

Breaking changes:

  • d2.Api Api methods will reject with an error when passing urls with an encoded query-string, or when passing urls with a malformed query string. The existing query string and anything that will be appended will be encoded for you by d2.Api's methods.

28.3.0

October 26th 2017

Breaking changes:

  • d2.dataStore API has changed in order to be more streamlined and easier to use:
    • d2.dataStore.create() has been added to be able to ensure a new (empty) namespace.
    • d2.dataStore.get() now rejects if the namespace does not exist.
    • d2.dataStore.getKeys() now always fetches from the server, use d2.dataStore.keys-member to get a list of internal-keys in a synchronous way.
Added
  • d2.currentUser.dataStore has been added, and is a wrapper around UserDataStore. The API shares most functionality with d2.dataStore.

28.0.0

September 19th 2017

Breaking changes:

  • d2.system.loadAppStore has changed in order to support the new central app store.
  • Support for dataType and contentType options on API requests have been removed. These were added for compatibility with jQuery, and have been deprecated since version 2.25. To migrate, manipulate the request headers directly instead:
    • dataType corresponds to the Accept header:
      • Before: api.get(url, { dataType: 'text' })
      • Now: api.get(url, { headers: { 'Accept': 'text/plain' }})
    • contentType corresponds to the Content-Type header:
      • Before: api.post(url, data, { contentType: 'text' })
      • Now: api.post(url, data, { headers: { 'Content-Type': 'text/plain' }})

27.0.0

February 20th 2016

Breaking changes:

  • d2.currentUser.uiLocale has been removed, d2.currentUser.userSettings.get should be used instead.
  • userSettings.get will now now always return a Promise (This therefore also applies to d2.currentUser.userSettings.get)
  • systemSettings.get will now always return a Promise.

25.2.0

November 18th 2016

Breaking change:

  • Calling save() on an instance of d2.Model or d2.ModelCollectionProperty that has no changes will now return a promise that immediately resolves to an empty object, in stead of a promise that's rejected with an error message

25.0.1

August 1st 2016
Added
  • [feat] clone() can now be used on a model instance to clone an object