Skip to content

Commit 87a912e

Browse files
committed
Support SQLite and updated version to 1.3.0
1 parent 281d078 commit 87a912e

File tree

60 files changed

+2138
-432
lines changed

Some content is hidden

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

60 files changed

+2138
-432
lines changed

Gruntfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = function (grunt) {
6666
},
6767
{
6868
name: 'persist/pouchDBPersistenceStoreFactory',
69-
include: ['persist/persistenceStoreFactory'],
69+
include: ['persist/persistenceStoreFactory', 'persist/configurablePouchDBStoreFactory'],
7070
excludeShallow: ['persist/impl/logger']
7171
},
7272
{
@@ -113,7 +113,7 @@ module.exports = function (grunt) {
113113
},
114114
{
115115
name: 'persist/pouchDBPersistenceStoreFactory',
116-
include: ['persist/persistenceStoreFactory'],
116+
include: ['persist/persistenceStoreFactory', 'persist/configurablePouchDBStoreFactory'],
117117
excludeShallow: ['persist/impl/logger']
118118
},
119119
{

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.2.9 #
1+
# offline-persistence-toolkit 1.3.0 #
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.2.9 #
1+
# offline-persistence-toolkit 1.3.0 #
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.2.9/min'
61+
'persist' : 'js/libs/persist/v1.3.0/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.2.9/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.0/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.2.9/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.0/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.2.9/min'
94+
'persist' : 'js/libs/persist/v1.3.0/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.2.9 #
1+
# offline-persistence-toolkit 1.3.0 #
22

33
# Introduction #
44

config/bundles-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
'persist/pouchdb-browser-7.0.0',
2121
'persist/impl/pouchDBPersistenceStore',
2222
'persist/pouchDBPersistenceStoreFactory',
23+
'persist/ConfigurablePouchDBStoreFactory',
2324
'persist/persistenceStoreFactory'
2425
],
2526
'persist/offline-persistence-toolkit-arraystore-{pkg.version}': [

config/require-config-coverage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
'localPersistenceStoreFactory': '../../dist/debug/localPersistenceStoreFactory',
1010
'oracleRestJsonShredding': '../../dist/debug/oracleRestJsonShredding',
1111
'pouchDBPersistenceStoreFactory': '../../dist/debug/pouchDBPersistenceStoreFactory',
12+
'ConfigurablePouchDBStoreFactory': '../../dist/debug/ConfigurablePouchDBStoreFactory',
1213
'persistenceManager': '../../dist/debug/persistenceManager',
1314
'PersistenceStore': '../../dist/debug/PersistenceStore',
1415
'persistenceStoreFactory': '../../dist/debug/persistenceStoreFactory',

docs/ArrayPersistenceStoreFactory.html

Lines changed: 158 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1 class="page-title">Class: ArrayPersistenceStoreFactory</h1>
2828

2929
<header>
3030

31-
<h2><span class="attribs"><span class="type-signature"></span></span>ArrayPersistenceStoreFactory<span class="signature">()</span><span class="type-signature"></span></h2>
31+
<h2><span class="attribs"><span class="type-signature"></span></span>ArrayPersistenceStoreFactory</h2>
3232

3333
<div class="class-description">PersistenceStoreFactory that creates an in-memory array backed
3434
PersisteneStore instance.</div>
@@ -41,16 +41,6 @@ <h2><span class="attribs"><span class="type-signature"></span></span>ArrayPersis
4141

4242

4343

44-
45-
<h2>Constructor</h2>
46-
47-
48-
49-
<h4 class="name" id="ArrayPersistenceStoreFactory"><span class="type-signature"></span>new ArrayPersistenceStoreFactory<span class="signature">()</span><span class="type-signature"></span></h4>
50-
51-
52-
53-
5444

5545

5646

@@ -150,19 +140,172 @@ <h3 class="subsection-title">Methods</h3>
150140

151141

152142

153-
<h4 class="name" id="createPersistenceStore"><span class="type-signature"></span>##createPersistenceStore<span class="signature">()</span><span class="type-signature"> &rarr; {Promise}</span></h4>
143+
<h4 class="name" id="createPersistenceStore"><span class="type-signature"></span>##createPersistenceStore<span class="signature">(name, options<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise.&lt;ArrayPersistenceStore>}</span></h4>
144+
145+
146+
147+
148+
149+
150+
151+
152+
153+
154+
155+
156+
157+
158+
<h5>Parameters:</h5>
159+
160+
161+
<table class="params">
162+
<thead>
163+
<tr>
164+
165+
<th>Name</th>
166+
167+
168+
<th>Type</th>
169+
170+
171+
<th>Attributes</th>
172+
173+
174+
175+
176+
<th class="last">Description</th>
177+
</tr>
178+
</thead>
179+
180+
<tbody>
181+
182+
183+
<tr>
184+
185+
<td class="name"><code>name</code></td>
186+
187+
188+
<td class="type">
189+
190+
191+
<span class="param-type">string</span>
192+
193+
194+
195+
</td>
196+
197+
198+
<td class="attributes">
199+
200+
201+
202+
203+
204+
</td>
205+
206+
207+
208+
209+
<td class="description last">The name to be associated with the store.</td>
210+
</tr>
211+
154212

155213

214+
<tr>
215+
216+
<td class="name"><code>options</code></td>
217+
218+
219+
<td class="type">
220+
221+
222+
<span class="param-type">object</span>
223+
224+
225+
226+
</td>
227+
228+
229+
<td class="attributes">
230+
231+
&lt;optional><br>
232+
233+
234+
235+
236+
237+
</td>
238+
239+
240+
241+
242+
<td class="description last">The configratuion options to be applied to the store.
243+
<h6>Properties</h6>
244+
245+
246+
<table class="params">
247+
<thead>
248+
<tr>
249+
250+
<th>Name</th>
251+
252+
253+
<th>Type</th>
254+
255+
256+
<th>Attributes</th>
257+
258+
259+
260+
261+
<th class="last">Description</th>
262+
</tr>
263+
</thead>
264+
265+
<tbody>
156266

157267

268+
<tr>
269+
270+
<td class="name"><code>version</code></td>
271+
272+
273+
<td class="type">
274+
275+
276+
<span class="param-type">string</span>
158277

159278

279+
280+
</td>
160281

282+
283+
<td class="attributes">
284+
285+
&lt;optional><br>
286+
161287

288+
162289

290+
291+
</td>
292+
163293

294+
295+
296+
<td class="description last">The version of the store.</td>
297+
</tr>
164298

299+
300+
</tbody>
301+
</table>
165302

303+
</td>
304+
</tr>
305+
306+
307+
</tbody>
308+
</table>
166309

167310

168311

@@ -198,7 +341,7 @@ <h4 class="name" id="createPersistenceStore"><span class="type-signature"></span
198341

199342
<dt class="tag-source">Source:</dt>
200343
<dd class="tag-source"><ul class="dummy"><li>
201-
<a href="arrayPersistenceStoreFactory.js.html">arrayPersistenceStoreFactory.js</a>, <a href="arrayPersistenceStoreFactory.js.html#line18">line 18</a>
344+
<a href="arrayPersistenceStoreFactory.js.html">arrayPersistenceStoreFactory.js</a>, <a href="arrayPersistenceStoreFactory.js.html#line19">line 19</a>
202345
</li></ul></dd>
203346

204347

@@ -239,7 +382,7 @@ <h5>Returns:</h5>
239382
</dt>
240383
<dd>
241384

242-
<span class="param-type">Promise</span>
385+
<span class="param-type">Promise.&lt;ArrayPersistenceStore></span>
243386

244387

245388
</dd>
@@ -267,7 +410,7 @@ <h5>Returns:</h5>
267410
</div>
268411

269412
<nav>
270-
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ArrayPersistenceStoreFactory.html">ArrayPersistenceStoreFactory</a></li><li><a href="cacheStrategies.html">cacheStrategies</a></li><li><a href="DefaultResponseProxy.html">DefaultResponseProxy</a></li><li><a href="fetchStrategies.html">fetchStrategies</a></li><li><a href="FileSystemPersistenceStoreFactory.html">FileSystemPersistenceStoreFactory</a></li><li><a href="LocalPersistenceStoreFactory.html">LocalPersistenceStoreFactory</a></li><li><a href="OfflineCache.html">OfflineCache</a></li><li><a href="oracleRestJsonShredding.html">oracleRestJsonShredding</a></li><li><a href="PersistenceManager.html">PersistenceManager</a></li><li><a href="PersistenceRegistration.html">PersistenceRegistration</a></li><li><a href="PersistenceStore.html">PersistenceStore</a></li><li><a href="PersistenceStoreFactory.html">PersistenceStoreFactory</a></li><li><a href="PersistenceStoreManager.html">PersistenceStoreManager</a></li><li><a href="PersistenceSyncManager.html">PersistenceSyncManager</a></li><li><a href="persistenceUtils.html">persistenceUtils</a></li><li><a href="PouchDBPersistenceStoreFactory.html">PouchDBPersistenceStoreFactory</a></li><li><a href="queryHandlers.html">queryHandlers</a></li><li><a href="simpleBinaryDataShredding.html">simpleBinaryDataShredding</a></li><li><a href="simpleJsonShredding.html">simpleJsonShredding</a></li></ul>
413+
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ArrayPersistenceStoreFactory.html">ArrayPersistenceStoreFactory</a></li><li><a href="cacheStrategies.html">cacheStrategies</a></li><li><a href="ConfigurablePouchDBStoreFactory.html">ConfigurablePouchDBStoreFactory</a></li><li><a href="DefaultResponseProxy.html">DefaultResponseProxy</a></li><li><a href="fetchStrategies.html">fetchStrategies</a></li><li><a href="FileSystemPersistenceStoreFactory.html">FileSystemPersistenceStoreFactory</a></li><li><a href="LocalPersistenceStoreFactory.html">LocalPersistenceStoreFactory</a></li><li><a href="OfflineCache.html">OfflineCache</a></li><li><a href="oracleRestJsonShredding.html">oracleRestJsonShredding</a></li><li><a href="PersistenceManager.html">PersistenceManager</a></li><li><a href="PersistenceRegistration.html">PersistenceRegistration</a></li><li><a href="PersistenceStore.html">PersistenceStore</a></li><li><a href="PersistenceStoreFactory.html">PersistenceStoreFactory</a></li><li><a href="PersistenceStoreManager.html">PersistenceStoreManager</a></li><li><a href="PersistenceSyncManager.html">PersistenceSyncManager</a></li><li><a href="persistenceUtils.html">persistenceUtils</a></li><li><a href="PouchDBPersistenceStoreFactory.html">PouchDBPersistenceStoreFactory</a></li><li><a href="queryHandlers.html">queryHandlers</a></li><li><a href="simpleBinaryDataShredding.html">simpleBinaryDataShredding</a></li><li><a href="simpleJsonShredding.html">simpleJsonShredding</a></li></ul>
271414
</nav>
272415

273416
<br class="clear">

0 commit comments

Comments
 (0)