Releases: FamilySearch/familysearch-javascript-sdk
Releases · FamilySearch/familysearch-javascript-sdk
v2.1.1
v2.1.0
- Support Pending Modifications by adding the
getPendingModifications()
method and thepending_modifications
configuration option. - Fix
Person.getPersonPortraitUrl()
- Add
getCurrentUserPerson()
method
v2.0.5
2.0.4
2.0.3
2.0.2
2.0.0
This is a major release with breaking changes. Read the migration guide for help with migrating from v1 to v2.
- Remove the
http_function
,deferred_function
, andtimeout_function
configuration options. Angular users must now call$scope.apply()
. - All API methods return a promise which always resolves with a Response object on success and an Error on failure. This particularly affects methods which used to return strings such as authentication methods and POSTs which would return an ID or URL. This also affects an situations where a user was accessing data directly as opposed to using the provided convenience methods. The convenience methods remain but the parsed JSON data is not the main object anymore; it is accessed via
response.getBody()
. An exception isgetOAuth2AuthorizeURL
which returns a promise but it doesn't actually make an HTTP request so it doesn't return a response object. Another exception are batch requests which return a map of response objects. - The HTTP methods previously attached to the promise are now attached to the response object.
sdk.restorePerson()
was removed; must callperson.$restore()
sdk.getPersonChanges()
,sdk.getCoupleChanges()
,sdk.getChildAndParentsChanges()
were replaced withsdk.getChanges()
sdk.getAgent()
requires a full URL; an agent ID can no longer be givensdk.setPreferredSpouse()
andsdk.setPreferredParents()
require the full relationship URL instead of just the ID.- removed
refresh
option from some$save()
functions. - removed
$memoryId
and$discussionId
fromComment
- removed
$personId
,$coupleId
, and$childAndParentsId
fromNote
- removed
$memoryId
fromMemoryPersona
- removed
$personId
fromMemoryPersonaRef
- replaced
sdk.getPersonNotes()
,sdk.getCoupleNotes()
, andsdk.getChildAndParentsNotes()
withsdk.getNotes()
- replaced
sdk.getPersonNote()
,sdk.getCoupleNote()
, andsdk.getChildAndParentsNote()
withsdk.getNote()
- replaced
sdk.getMultiPersonNote()
,sdk.getMultiCoupleNote()
, andsdk.getMultiChildAndParentsNote()
withsdk.getMultiNote()
- replaced
sdk.deletePersonNote()
,sdk.deleteCoupleNote()
, andsdk.deleteChildAndParentsNote()
withsdk.deleteNote()
- removed
$personId
,$coupleId
, and$childAndParentsId
fromSourceRef
sdk.deleteSourceDescription()
no longer deletes all dangling source references$
prefix on object methods has been removed.- Object properties are no longer directly accessible. Getter methods have been added.
- The
Date
interface has completely changed. It is now simply a container with getters and setters. It does not do any generation or interpretation of formal dates. - New
PlaceReference
used byFact
- Easy serialization of all objects via
JSON.stringify()
andtoString()
Gender
is now a class.
v1.0.0
1.0.0-beta4
Testing cdn and npm publishing