Skip to content

Commit 67fb603

Browse files
Fixed XHR adapter and offline cache delete. Updated version to 1.3.1
Fixed handling of errors in XHR adapter. Fixed deletion of shredded data when response is deleted from the offline cache.
1 parent 54f6d38 commit 67fb603

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+317
-288
lines changed

JSDOC.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# offline-persistence-toolkit 1.3.0 #
1+
# offline-persistence-toolkit 1.3.1 #
22

33
## Introduction ##
44

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# offline-persistence-toolkit 1.3.0 #
1+
# offline-persistence-toolkit 1.3.1 #
22

33
offline-persistence-toolkit is a client-side JavaScript library that provides caching and offline support at the HTTP request layer. This support is transparent to the user and is done through the Fetch API and an XHR adapter. HTTP requests made while the client device is offline are captured for replay when connection to the server is restored. Additional capabilities include a persistent storage layer, synchronization manager, binary data support and various configuration APIs for customizing the default behavior. This framework can be used in both ServiceWorker and non-ServiceWorker contexts within web and hybrid mobile apps.
44

@@ -58,16 +58,16 @@ If your app uses [RequireJS](http://www.requirejs.org/ "RequireJS"), update the
5858
```javascript
5959
requirejs.config({
6060
paths: {
61-
'persist' : 'js/libs/persist/v1.3.0/min'
61+
'persist' : 'js/libs/persist/v1.3.1/min'
6262

6363
// Other path mappings here
6464
}
6565
```
66-
For Oracle JET apps, also open `appDir/src/js/main-release-paths.json` and add the `'persist' : 'js/libs/persist/v1.3.0/min'` entry to the list of paths.
66+
For Oracle JET apps, also open `appDir/src/js/main-release-paths.json` and add the `'persist' : 'js/libs/persist/v1.3.1/min'` entry to the list of paths.
6767
6868
You can choose the name of the paths prefix. That is, you can use a different value to the ‘persist’ value shown in the examples.
6969
70-
It is recommended to add the version number as a convention in your application build step such as `'persist' : 'js/libs/persist/v1.3.0/min'`.
70+
It is recommended to add the version number as a convention in your application build step such as `'persist' : 'js/libs/persist/v1.3.1/min'`.
7171
7272
Versions of the toolkit are also available on CDN under the latest JET release. e.g.
7373
@@ -91,7 +91,7 @@ And again, if you are using RequireJS, you will need to map paths for these pack
9191
paths: {
9292
'pouchdb': 'js/libs/pouchdb-7.0.0',
9393
'pouchfind': 'js/libs/pouchdb.find',
94-
'persist' : 'js/libs/persist/v1.3.0/min'
94+
'persist' : 'js/libs/persist/v1.3.1/min'
9595

9696
// Other path mappings here
9797
}

USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# offline-persistence-toolkit 1.3.0 #
1+
# offline-persistence-toolkit 1.3.1 #
22

33
# Introduction #
44

docs/ArrayPersistenceStoreFactory.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ <h2><span class="attribs"><span class="type-signature"></span></span>ArrayPersis
112112

113113

114114

115-
116-
117115

118116
</div>
119117

@@ -364,8 +362,6 @@ <h6>Properties</h6>
364362

365363

366364

367-
368-
369365
<h5>Returns:</h5>
370366

371367

@@ -416,7 +412,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ArrayPers
416412
<br class="clear">
417413

418414
<footer>
419-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.2</a>
415+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
420416
</footer>
421417

422418
<script> prettyPrint(); </script>

docs/ConfigurablePouchDBStoreFactory.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,6 @@ <h6>Properties</h6>
343343

344344

345345

346-
347-
348346

349347
</div>
350348

@@ -595,8 +593,6 @@ <h6>Properties</h6>
595593

596594

597595

598-
599-
600596
<h5>Returns:</h5>
601597

602598

@@ -647,7 +643,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ArrayPers
647643
<br class="clear">
648644

649645
<footer>
650-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.2</a>
646+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
651647
</footer>
652648

653649
<script> prettyPrint(); </script>

docs/DefaultResponseProxy.html

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,6 @@ <h5>Parameters:</h5>
186186

187187

188188

189-
190-
191189

192190
</div>
193191

@@ -386,8 +384,6 @@ <h5>Parameters:</h5>
386384

387385

388386

389-
390-
391387

392388

393389

@@ -469,8 +465,6 @@ <h4 class="name" id="getFetchEventListener"><span class="type-signature"></span>
469465

470466

471467

472-
473-
474468
<h5>Returns:</h5>
475469

476470

@@ -630,8 +624,6 @@ <h5>Parameters:</h5>
630624

631625

632626

633-
634-
635627
<h5>Returns:</h5>
636628

637629

@@ -791,8 +783,6 @@ <h5>Parameters:</h5>
791783

792784

793785

794-
795-
796786
<h5>Returns:</h5>
797787

798788

@@ -952,8 +942,6 @@ <h5>Parameters:</h5>
952942

953943

954944

955-
956-
957945
<h5>Returns:</h5>
958946

959947

@@ -1113,8 +1101,6 @@ <h5>Parameters:</h5>
11131101

11141102

11151103

1116-
1117-
11181104
<h5>Returns:</h5>
11191105

11201106

@@ -1274,8 +1260,6 @@ <h5>Parameters:</h5>
12741260

12751261

12761262

1277-
1278-
12791263
<h5>Returns:</h5>
12801264

12811265

@@ -1435,8 +1419,6 @@ <h5>Parameters:</h5>
14351419

14361420

14371421

1438-
1439-
14401422
<h5>Returns:</h5>
14411423

14421424

@@ -1596,8 +1578,6 @@ <h5>Parameters:</h5>
15961578

15971579

15981580

1599-
1600-
16011581
<h5>Returns:</h5>
16021582

16031583

@@ -1756,8 +1736,6 @@ <h5>Parameters:</h5>
17561736

17571737

17581738

1759-
1760-
17611739
<h5>Returns:</h5>
17621740

17631741

@@ -1807,7 +1785,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ArrayPers
18071785
<br class="clear">
18081786

18091787
<footer>
1810-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.2</a>
1788+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
18111789
</footer>
18121790

18131791
<script> prettyPrint(); </script>

docs/FileSystemPersistenceStoreFactory.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ <h2><span class="attribs"><span class="type-signature"></span></span>FileSystemP
116116

117117

118118

119-
120-
121119

122120
</div>
123121

@@ -368,8 +366,6 @@ <h6>Properties</h6>
368366

369367

370368

371-
372-
373369
<h5>Returns:</h5>
374370

375371

@@ -420,7 +416,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ArrayPers
420416
<br class="clear">
421417

422418
<footer>
423-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.2</a>
419+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
424420
</footer>
425421

426422
<script> prettyPrint(); </script>

docs/LocalPersistenceStoreFactory.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ <h2><span class="attribs"><span class="type-signature"></span></span>LocalPersis
112112

113113

114114

115-
116-
117115

118116
</div>
119117

@@ -364,8 +362,6 @@ <h6>Properties</h6>
364362

365363

366364

367-
368-
369365
<h5>Returns:</h5>
370366

371367

@@ -416,7 +412,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ArrayPers
416412
<br class="clear">
417413

418414
<footer>
419-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.2</a>
415+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
420416
</footer>
421417

422418
<script> prettyPrint(); </script>

docs/OfflineCache.html

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,6 @@ <h5>Parameters:</h5>
197197

198198

199199

200-
201-
202200

203201
</div>
204202

@@ -349,8 +347,6 @@ <h5>Parameters:</h5>
349347

350348

351349

352-
353-
354350
<h5>Returns:</h5>
355351

356352

@@ -510,8 +506,6 @@ <h5>Parameters:</h5>
510506

511507

512508

513-
514-
515509
<h5>Returns:</h5>
516510

517511

@@ -710,8 +704,6 @@ <h5>Parameters:</h5>
710704

711705

712706

713-
714-
715707
<h5>Returns:</h5>
716708

717709

@@ -823,8 +815,6 @@ <h4 class="name" id="getName"><span class="type-signature"></span>##getName<span
823815

824816

825817

826-
827-
828818
<h5>Returns:</h5>
829819

830820

@@ -1023,8 +1013,6 @@ <h5>Parameters:</h5>
10231013

10241014

10251015

1026-
1027-
10281016
<h5>Returns:</h5>
10291017

10301018

@@ -1222,8 +1210,6 @@ <h5>Parameters:</h5>
12221210

12231211

12241212

1225-
1226-
12271213
<h5>Returns:</h5>
12281214

12291215

@@ -1420,8 +1406,6 @@ <h5>Parameters:</h5>
14201406

14211407

14221408

1423-
1424-
14251409
<h5>Returns:</h5>
14261410

14271411

@@ -1621,8 +1605,6 @@ <h5>Parameters:</h5>
16211605

16221606

16231607

1624-
1625-
16261608
<h5>Returns:</h5>
16271609

16281610

@@ -1804,8 +1786,6 @@ <h5>Parameters:</h5>
18041786

18051787

18061788

1807-
1808-
18091789
<h5>Returns:</h5>
18101790

18111791

@@ -1855,7 +1835,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ArrayPers
18551835
<br class="clear">
18561836

18571837
<footer>
1858-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.2</a>
1838+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
18591839
</footer>
18601840

18611841
<script> prettyPrint(); </script>

0 commit comments

Comments
 (0)