Skip to content

Commit c88d77b

Browse files
committed
Merge branch 'master' into bugfix/1097-fix_gd_dropbox_authorization
2 parents 571e93c + edff0ac commit c88d77b

28 files changed

+6876
-2746
lines changed

.codeclimate.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
version: "2"
23
engines:
34
eslint:
45
enabled: true
@@ -7,7 +8,10 @@ engines:
78
enabled: true
89
config:
910
languages:
10-
- javascript
11+
- javascript
12+
checks:
13+
file-lines:
14+
enabled: false
1115
ratings:
1216
paths:
1317
- src/**

CHANGELOG.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,38 @@
11
# remoteStorage.js Changelog
22

33
All releases can also be found and downloaded on the
4-
[releases page](https://github.com/remotestorage/remotestorage.js/releases) at GitHub.
4+
[releases page](https://github.com/remotestorage/remotestorage.js/releases)
5+
at GitHub.
6+
7+
## 1.0.3 (March 2018)
8+
9+
### Bugfixes
10+
11+
* Fix missing If-Match headers on PUT requests (#1121)
12+
* Fix sync errors after disconnect (#939, #1117)
13+
* Use/update correct version number for documentation (#1115)
14+
15+
### Enhancements
16+
17+
* Update dependencies, build config (#1122)
18+
* Documentation fixes and improvements
19+
20+
## 1.0.2 (November 2017)
21+
22+
### Bugfixes
23+
24+
* Fix Dropbox offline issues (#1102)
25+
26+
### Enhancements
27+
28+
* Refactorings and cleanups
29+
* Documentation fixes and improvements
530

631
## 1.0.1 (November 2017)
732

833
### Bugfixes
934

10-
Fix Dropbox throwing an error on failed requests (#1096)
35+
* Fix Dropbox throwing an error on failed requests (#1096)
1136

1237
## 1.0.0 (November 2017)
1338

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "remotestorage",
3-
"version": "1.0.1",
3+
"version": "1.0.3",
44
"main": [
55
"./release/remotestorage.js"
66
],

doc/_static/css/custom.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* Add a left and right margin to parens in function signatures */
2+
.rst-content dl .sig-paren {
3+
margin: 0 0.15em;
4+
}
5+
6+
@media screen and (min-width : 640px) {
7+
.wy-table-responsive table th,
8+
.wy-table-responsive table td {
9+
white-space: normal;
10+
}
11+
}

doc/_static/css/remotestorage.css

Lines changed: 0 additions & 4 deletions
This file was deleted.

doc/_templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- Extend the layout and add our own stylesheet -->
22
{% extends "!layout.html" %}
33
{% block extrahead %}
4-
<link href="{{ pathto("_static/css/remotestorage.css", True) }}" rel="stylesheet" type="text/css">
4+
<link href="{{ pathto("_static/css/custom.css", True) }}" rel="stylesheet" type="text/css">
55
{% endblock %}

doc/conf.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
# add these directories to sys.path here. If the directory is relative to the
1616
# documentation root, use os.path.abspath to make it absolute, like shown here.
1717
#
18-
# import os
19-
# import sys
20-
# sys.path.insert(0, os.path.abspath('.'))
18+
import os
19+
import sys
20+
sys.path.insert(0, os.path.abspath('.'))
2121

22+
from version import __version__
2223

2324
# -- General configuration ------------------------------------------------
2425

@@ -66,9 +67,9 @@
6667
# built documents.
6768
#
6869
# The short X.Y version.
69-
version = '1.0.0-alpha7'
70+
version = __version__
7071
# The full version, including alpha/beta/rc tags.
71-
release = '1.0.0-alpha7'
72+
release = __version__
7273

7374
# The language for content autogenerated by Sphinx. Refer to documentation
7475
# for a list of supported languages.

doc/getting-started/how-to-add.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The package is available on `npm <https://www.npmjs.com/>`_ as
1818
1919
.. code:: bash
2020
21-
$ bower install -S remotestoragejs
21+
$ bower install -S rs
2222
2323
Examples
2424
--------

doc/js-api/base-client.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ List of functions
105105
}
106106
}
107107
108+
.. WARNING::
109+
At the moment, this function only returns detailed metadata, when caching
110+
is turned off (``new RemoteStorage({cache: false})``). With caching turned
111+
on, it will only contain the item names as properties with ``true`` as
112+
value. See issues :issue:`721` and :issue:`1108` — contributions
113+
welcome!
114+
108115
.. autofunction:: BaseClient#getObject(path, maxAge)
109116
:short-name:
110117

doc/js-api/caching.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,18 @@ List of functions
7070
7171
remoteStorage.caching.set('/bookmarks/archive/', 'SEEN');
7272
73+
.. autofunction:: Caching#checkPath(path)
74+
:short-name:
75+
76+
Example:
77+
78+
.. code:: javascript
79+
80+
remoteStorage.caching.checkPath('documents/').then(strategy => {
81+
console.log(`caching strategy for 'documents/': ${strategy}`));
82+
// "caching strategy for 'documents/': SEEN"
83+
});
84+
7385
.. autofunction:: Caching#reset
7486
:short-name:
7587

0 commit comments

Comments
 (0)