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.
- none yet
- none yet
- none yet
- none yet
- Allow to define any file metadata on file upload
- Possibility to use cursor-based pagination for references
- Add an option to not sanitize the filenames
- Ignore dist directory in git
- include isomorphic-fetch in node build
- PouchDB upgrade to version 7
- Use pouchdb-browser instead of pouchdb package to avoid leveldown in node version
- Version
- Travis configuration
v0.14.0 - 2018-10-31
- Expose
fetch()
method
v0.13.0 - 2018-09-19
- Added a function to migrate PouchDB databases from one adapter to another.
v0.12.1 - 2018-09-06
- Added missing
dist/
folder
v0.12.0 - 2018-07-30
- Fix issue for intents URLs computing with hash
v0.11.0 - 2018-06-22
- intents: add an redirectFn parameter to redirect method
- none yet
v0.10.0 - 2018-06-22
- Pouchdb and Pouchdb-find have been upgraded to their latest versions. Pouchdb-find has changed major version.
- isomorphic-fetch has been added as a direct dependency, fixing a problem on node on macOS.
v0.9.0 - 2018-04-27
- Intent composition
- Code is formatted using Prettier
v0.8.3 - 2018-04-18
- Intent service now force document height to 100%
v0.8.2 - 2018-04-16
- Fix a polyfill issue about async/await usage and use
babel-preset-cozy-app
v0.8.1 - 2018-04-13
- Add new intents method
REDIRECT
andgetRedirectionURL
(PR #256)
v0.8.0 - 2018-03-16
- Now trim file name before any creation or update.
- Added push notifications related options on OAuth client (notificationPlatform and notificationDeviceToken)
v0.7.2 - 2018-02-28
- Added a polyfill for
Object.assign
v0.7.1 - 2018-02-20
- Allow to pass a
contentLength
option to files.create. This prevent the stack from saving uncomplete upload.
v0.7.0 - 2018-02-12
- Breaking If the token used to call the stack is expired or invalid on an app's page, the page is reloaded. The error is still thrown. See here for more informations.
v0.6.2 - 2018-01-30
- Fixed a faulty build
v0.6.1 - 2018-01-30
- Case-insensitive detection on mime-types
v0.6.0 - 2018-01-29
- Added detection for
HEIC
mime-types
v0.5.0 - 2018-01-24
- Added an option to create a directory without using pouch #241
v0.4.4 - 2017-12-12
- Auth was broken on older browsers (notably iOS9) #237
v0.4.3 - 2017-11-30
babel-polyfill
is not included anymore https://github.com/cozy/cozy-client-js/commit/b12fb52da002742c83bfc87632a3bc6440d1a8c0
v0.4.2 - 2017-11-14
processJSONAPI
option can now be passed tofetchJSON
v0.4.1 - 2017-11-10
- Ability to use sqlite as a pouch adapter, if provided by the host app.
v0.4.0 - 2017-11-07
- Added PouchDB as a direct dependency.
v0.3.20 - 2017-11-02
- Check for parentNode existing before removing intent iframe (avoid error in console)
- Add .focus() to allow keyboard navigation inside the iframe
v0.3.19 - 2017-09-27
- Added a function to call
/settings/synchronized
v0.3.18 - 2017-09-25
- Optimised checking for index availability right after they are created
- When clients request to regenerate their token, redirect them to a page with more explanations then the default login page.
v0.3.17 - 2017-09-01
- Returns an empty array from
data.findAll()
when documents not found (instead of 404 error)
v0.3.16 - 2017-08-31
- Return directly an array of docs for
data.findAll()
- Do not include CouchDB indexes in
data.findAll()
v0.3.15 - 2017-08-31
- Add a retry on
data.defineIndex
to avoid stack error for index not ready yet
- Add
data.findAll(doctype)
to get all documents of a provided doctype without using index
v0.3.14 - 2017-08-30
- Use sort=datetime when fetching referenced files
v0.3.13 - 2017-08-22
- Add second optional parameter (
options
) tofiles.destroyById
function, matching other functions from same package.
v0.3.12 - 2017-08-08
- Add second optional parameter (
transitionProperty
) toresizeClient()
function, in order to handle CSS transition
v0.3.11 - 2017-07-25
- Added support for the
sort
query option - Added an option to allow bypassing the oath credentials cache
v0.3.10 - 2017-07-20
- Handle
exposeIntentFrameRemoval
data flag to terminate the service without removing the intent DOM node directly but by providing the removal function to the client. - Add an
onReadyCallback
optional argument to the create method in order to allow providing a callback function to be run when the intent iframe will be loaded (iframeonload
listener).
v0.3.9 - 2017-07-10
- Add a
cozy.client.data.findMany
method to fetch multiple docs at once
- Fix the compatibility shim for
getArchiveLink
v0.3.8 - 2017-06-22
- Fix intent handshake in Safari 9.1
v0.3.7 - 2017-06-21
- Fix
service.resizeClient()
in intents.
v0.3.6 - 2017-06-15
- Add a
intentService.resizeClient()
method to force the size of the intent modal
v0.3.5 - 2017-06-13
- Add a
intentService.throw(error)
method to throw an error on client. - Add a
getArchiveLinkByIds
method to create a zip with files identified by their ids. - Add a
fetchReferencedFiles
method to fetch the files related to a doc. - Add a
cozy.client.files.query
method to fetch files using a mango query
v0.3.4 - 2017-06-06
- Create data with forced ID
- Documentation about trash/restore
- Documentation about sending an email
v0.3.3 - 2017-05-30
- Update documentation
v0.3.2 - 2017-05-19
- Not enough permissions for collections sharing
- Add a method to count the number of jobs in a queue
- Add a method to enqueue a job in a queue
v0.3.1 - 2017-05-18
- Missing parts from intents in dist
v0.3.0 - 2017-05-17
- Intents : side effects in postMessage listeners
- Upload was cancel twice
- Intents are better, safer, stronger
- Create a share link from an
id
v0.2.5 - 2017-05-10
- Accept an optional wholeResponse query parameter in cozy.data.query
- Files are now correctly sorted when offline
v0.2.4 - 2017-05-04
- Remove trash folder on offline request
- Add feature to remove referenced files
cancel()
method on service object returned bycozy.client.intents.createService()
v0.2.3 - 2017-04-28
- Add skip and limit options to cozy.client.files.statByID
- Temporary
cozy.client.fetchJSON()
, to facilitated development process.
v0.2.2 - 2017-04-27
- Accept an optional revision to be sent as
If-Match
when trashing a file/folder
- method
cozy.client.files.createDirectoryByPath()
- Check if there is a connection before starting replication
- Return client registered on offline mode
- Do not try to refresh token if retreiving a token fails
- Break an infinite loop of retry/failure when fetch returns a 400 but client is not revoked
- Add cozy version parameter to remove '/status/' request on offline mode
⚠️ pouchdb
andpouchdb-find
required dependencies, see offline documentation
- Missing min.js files. Oops !
- Documentation about intents API
- Doc now use
cozy.tools:8080
as example and default domain. No need to edit /etc/hosts.
- Add
cozy.client.intents.create
to create an intent. Allow next tostart
into an HTML element. - Add
cozy.client.intents.createService
to instanciate a service able to deal with a client.
- Documentation improvements
v0.1.9 - 2017-03-24
- PouchDB replication can refresh its token if needed
- mime-type was badly detected when uploading within cordova app
v0.1.8 - 2017-03-13
onComplete
&onError
are call after replication end- The offline database is created during a replication if it does not exist
v0.1.5 - 2017-03-07
getClient
throws a specific error for revoked client
v0.1.4 - 2017-03-06
- Add
cozy.client.getFilePath
to generate path for a given file - Handling custom code on replication complete or error
- Fix typo 🐛 getDowloadLink -> getDownloadLink
v0.1.3 - 2017-03-03
- Refactoring on offline to return Promise