Permalink
Commits on Nov 5, 2016
  1. - Fix: Incorporate fix from @xlc for iOS detection

    - Update dist files
    - Testing (Mocha): Bump a few timeouts
    brettz9 committed Nov 5, 2016
Commits on Oct 29, 2016
  1. - npm: Hard-code dependency versions (overcoming `ncu -a` not current…

    …ly updating otherwise)
    
    - npm: Upgrade packages
    - Refactoring (ESLint): Deal with new ESLint complaints
    - Testing: Remove force flag (latest ESLint ok)
    brettz9 committed Oct 29, 2016
Commits on Oct 27, 2016
  1. - Optimize: use WebSQL `readTransaction` when in `readonly` mode

    - Feature: Add `shimIndexedDB.__getConfig()`
    brettz9 committed Oct 27, 2016
  2. - Fix: Ensure `AbortError` sent to `IDBOpenDBRequest.onerror` upon a

        transaction aborting or a connection being closed within an upgrade
        transaction
    - Fix: Set `IDBOpenDBRequest.transaction` to `null` upon `AbortError` due to
        closed connection
    brettz9 committed Oct 27, 2016
Commits on Oct 26, 2016
  1. Merge branch 'bubbling'

    # Conflicts:
    #	dist/indexeddbshim-UnicodeIdentifiers.min.js
    #	dist/indexeddbshim-node.min.js.map
    #	dist/indexeddbshim.min.js
    #	dist/indexeddbshim.min.js.map
    brettz9 committed Oct 26, 2016
  2. Update dist files

    brettz9 committed Oct 26, 2016
  3. - Fix: Set `error` property of `IDBTransaction` for certain tx aborts

    - Fix: 'error' and 'abort' bubbling events
       ((`IDBRequest`->) `IDBTransaction`->`IDBDatabase`),
       including reuse of same event object upon propagation and potential
       for cancellation as appropriate; used within `IDBTransaction` and
       potentially within `IDBFactory`
    - Fix: Set `readyState` to "done", `result` to `undefined`, and `error`
       to a new `AbortError` on each request when aborting a transaction
    - Fix: Set transaction active flag on while dispatching success/error
       events
    - Fix: Abort transaction upon request "success" handler throwing or
       "error" handler throwing or "error" event not being prevented
    - Fix: Trigger queue of "error"-type events on all unfinished
       requests during transaction abort (then "abort" type event on
       transaction)
    - Fix: Avoid adding `DOMException` class when error not found (should
       not occur?)
    - Fix: Use `AbortError` as `IDBTransaction.error` property when
       "error" handler throws
    - Fix: If transaction already aborted, avoid potential for
       request errors firing
    - Fix: If transaction already aborted, avoid running further
       request callbacks or success/error events
    - Fix: Throw for `IDBRequest` or `IDBOpenDBRequest` with `result`
       and `error` getters if request not yet done
    - Fix: Add duck-typing `instanceof` mechanism for `ShimEvent`
    - Fix: Change type to "abort" for transaction abort events
    - Fix: Add `toString` for `IDBVersionChangeEvent`
    - Fix: Set `readyState` for successful `IDBFactory.deleteDatabase`
        and `IDBFactory.webkitGetDatabaseNames`
    - Fix: Set `readyState` to 'pending' for `IDBCursor` `continue`/`advance`
    - Fix: Avoid adding requests with success events for
        `createObjectStore`/`deleteObjectStore`/`createIndex`/`deleteIndex`
        and store/index renaming
    - Fix: Avoid firing multiple `success` events with `IDBFactory.open`
    - Fix: Fire abort event synchronously (otherwise transaction
        apparently timing out)
    - Fix: Revert to using TypeError in place of DataError for missing
        arguments (part of WebIDL binding): `IDBIndex.get`/`IDBIndex.getKey`/
        `IDBObjectStore.get`/`IDBObjectStore.delete`
    - Fix: Remove `ProxyPolyfill`
    - Refactoring: Remove unneeded `DOMError` methods
    - npm: Update packages
    - Testing (Grunt): Force ESLint (since "standard" currently causing a warning)
    - Testing (Grunt): Avoid uglification during Node testing (just use
        unminimized files)
    - Testing fix: `IDBFactory.open` tests to do more flexible
       `instanceof` checks;
    - Testing fix: Conditionally check for `indexedDB.modules` in case we
        are running tests without shim
    - Testing (Mocha): Add missing `IDBKeyRange/includes-spec.js` to browser
        tests
    - Testing (W3C Old): Cause recursive value test not to be skipped
    - Testing improvement: Shim `Event` in Unicode test for parity (even
        if not needed in current tests)
    - Testing (Mocha): Change ordering of tests
    (Testing: Now passing old W3C tests: IDBObjectStore.put.js, KeyGenerator.js, RequestBehavior.js)
    - CHANGES: Update changes file to include recent `master` improvements
    brettz9 committed Oct 26, 2016
Commits on Oct 22, 2016
  1. - Add some other browsers (in comments) for Saucelabs

    - Update dist files
    brettz9 committed Oct 22, 2016
  2. Clarify README

    brettz9 committed Oct 22, 2016
  3. Clean-up readme re: testing

    brettz9 committed Oct 22, 2016
  4. - Testing (npm): Use Saucelabs again by default for `npm test`;

    - Testing (Travis): Try forcing PhantomJS 2.1.1 for Travis (in case switch there from using Sauce to grunt-contrib-qunit);
    - Testing (Travis): Set secure encryption keys to my own working ones
    - Testing (Grunt): Log the Sauce results
    brettz9 committed Oct 22, 2016
Commits on Oct 21, 2016
  1. - Fix: Make `IDBFactory.webkitGetDatabaseNames` bubble in anticipatio…

    …n of future spec change
    
    - Fix: Get `IDBFactory.webkitGetDatabaseNames` to trigger success event properly
    - Testing (QUnit): Add onerror for `webkitGetDatabaseNames` test
    - Testing (Grunt): Update grunt-node-qunit to support latest QUnit
    brettz9 committed Oct 21, 2016
  2. - Testing (Grunt): Allow use of own sauce access key

    - Testing (Grunt): Add task to avoid saucelabs when running PhantomJS
    brettz9 committed Oct 21, 2016
Commits on Oct 19, 2016
  1. Clarify code comment

    brettz9 committed Oct 19, 2016
  2. - Fix: As per spec, `DELETE` then `INSERT` rather than `UPDATE` for

       `IDBCursor.update`
    - package.json: reorder tests
    brettz9 committed Oct 19, 2016
  3. - Fix: Implement non-upgrade rollback upon `IDBTransaction.abort` whe…

    …re possible,
    
    e.g., node-websql doesn't impose ROLLBACK limitation as in browsers
    (now passing most of `fakeIndexedDB.js` except `versionchange`
    whose support is not yet implemented; also must still implement abort
    rollback in automated situations which call for it)
    brettz9 committed Oct 19, 2016
  4. Fix code comment

    brettz9 committed Oct 19, 2016
  5. - (Fix: Add space to error message)

    - Fix code comment
    brettz9 committed Oct 19, 2016
  6. - (Breaking change: Change casing of config file to reflect internal …

    …variable used (cfg.js->CFG.js));
    
    - Feature: Allow DEFAULT_DB_SIZE to be set via CFG.js;
    - Fix: In Safari, default DEFAULT_DB_SIZE to a higher value (25 * 1024 * 1024); fixes #115
    brettz9 committed Oct 19, 2016
Commits on Oct 18, 2016
  1. README note on w3c tests

    brettz9 committed Oct 18, 2016
  2. Update CHANGES

    brettz9 committed Oct 18, 2016