1. 28 Jul, 2017 1 commit
  2. 27 Jul, 2017 2 commits
  3. 25 Jul, 2017 4 commits
    • Robert Knight's avatar
      1.32.1 · 03a89ff7
      Robert Knight authored
      03a89ff7
    • Robert Knight's avatar
      Update Change Log · c8737ff2
      Robert Knight authored
      c8737ff2
    • Sean Roberts's avatar
      Merge pull request #507 from hypothesis/ie-11-baseuri-fix · 819c791a
      Sean Roberts authored
      Fix IE 11 regression in documents without a `<base>` element.
      819c791a
    • Robert Knight's avatar
      Fix IE 11 regression in documents without a `<base>` element. · dad6ef61
      Robert Knight authored
      `Document#uri` and `Document#getMetadata` returned the base URI rather
      than the document's real URL as the document location if the protocol of
      the base URI and true document location were different. The reason for
      this was to support the use case where the document is an iframe loaded
      from a `blob:` URL, which Readium does for example.
      
      This broke in IE 11 if the document did not have a `<base>` element
      because the fallback `Node.baseURI` and `Document.documentURI`
      properties used by `document-base-uri` do not exist in that browser.
      
      This commit re-works the behavior of `_getDocumentHref` to be more
      conservative and return the base URI only if a) the
      document location does not have a whitelisted scheme and b) the base URI
      is defined and does have a whitelisted scheme.
      
      Additionally, the tests have been re-worked to test the public `uri`
      method instead of the private `_getDocumentHref` method and use test
      seams instead of proxyquire.
      dad6ef61
  4. 20 Jul, 2017 2 commits
  5. 19 Jul, 2017 2 commits
  6. 18 Jul, 2017 1 commit
    • Juan Corona's avatar
      Use a URN derived from DublinCore meta tags for creating equivalent links... · 7b9cbbb7
      Juan Corona authored
      Use a URN derived from DublinCore meta tags for creating equivalent links across documents that provide ‘dc:source’ and ‘dc:identifier’ tags
      
      This link is now the documentIdentifier for non-PDF cases for the document metadata. This metadata is shared with the sidebar, making this link appear in the list of links for the Search API calls
      7b9cbbb7
  7. 17 Jul, 2017 4 commits
  8. 14 Jul, 2017 9 commits
  9. 13 Jul, 2017 6 commits
  10. 12 Jul, 2017 2 commits
  11. 11 Jul, 2017 7 commits
    • Robert Knight's avatar
      Use arrow functions consistently. · ffe2da0a
      Robert Knight authored
      For code in newly created JS files, arrow functions should be favored.
      ffe2da0a
    • Robert Knight's avatar
      Add tests for `generateFacetedFilter` · 4c6deb6a
      Robert Knight authored
      In the process fix an inconsistency where the "since" term was returned
      as a number for hours, days, weeks, months and years but as a string for
      seconds.
      4c6deb6a
    • Robert Knight's avatar
      Convert search-filter tests to JS · e8ff7acf
      Robert Knight authored
      e8ff7acf
    • Robert Knight's avatar
      Convert search-filter.coffee to JS · 21c38686
      Robert Knight authored
      Convert the SearchFilter class to JS using decaffeinate and convert
      methods which do not depend on any external state, which is all of them,
      into plain functions.
      21c38686
    • Robert Knight's avatar
      Persist access and refresh tokens to localStorage. · 3404a69c
      Robert Knight authored
      Persist access and refresh tokens to localStorage, under the key:
      
        hypothesis.oauth.<authority>.token
      
      Where `<authority>` is the domain of the annotation service and the
      structure is the JSON-encoded object:
      
        {
          accessToken: <token>,
          refreshToken: <token>,
          expiresAt: <UNIX timestamp in ms>
        }
      
      When an API token is requested for the first time during startup, the
      existing token for the current authority is loaded from storage,
      validated locally and then used if possible.
      3404a69c
    • Robert Knight's avatar
      Update package-lock.json to latest version. · e29a73f0
      Robert Knight authored
      We should review whether or not to include this file in the source tree,
      given that we use Yarn primarily for package management, but since it is
      here, keep it up to date.
      e29a73f0
    • Robert Knight's avatar
      1.28.0 · 663d6d2f
      Robert Knight authored
      663d6d2f