-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename copy #19
Open
brettz9
wants to merge
8
commits into
treojs:master
Choose a base branch
from
brettz9:rename-copy
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Rename copy #19
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brettz9
force-pushed
the
rename-copy
branch
2 times, most recently
from
April 26, 2016 04:28
19111b9
to
f2c98b3
Compare
Please hold off on this particular PR for now, as I think it may need a little more work. |
brettz9
force-pushed
the
rename-copy
branch
2 times, most recently
from
May 2, 2016 02:10
109981f
to
c55bdc7
Compare
…allow a sequence of upgrades which can support promises returned by `addCallback` callbacks (and add docs and tests for multiple promise-based callbacks on different versions); Commenting: Indicate specific Safari bug within code; Refactoring: Use ES6 `Array.from`; add `Number.isInteger` and ES7 `Object.values()` in place of npm modules (requires babel-polyfill); Testing: Split off local testing from Sauce; prevent blocking; increase timeout for Firefox; add test to throw with previous version
…ted `addCallback` ones, can themselves use idb-schema methods (e.g., to convert from JSON to idb-schema) though, since they execute within `upgradeneeded` cannot support Promises (as can the callbacks within `addCallback` when `schema.open` or `schema.upgrade` are used); document
… added previously) - If `delStore` does throw later (or if there is any other upgrade error), the error can be caught by `callback` or `open`/`upgrade` - Feature: Support `errBack` to `callback` - Expand callback, delStore docs
… at run-time); Fix: Allow stores and indexes to be an empty string; Fix: allow empty-string key path (unless with autoIncrement); Fix: disallow autoIncrement with array keyPath but enable for non-empty strings (as permitted by spec--keys overridable on put()/add()) Testing: Add tests for above
…n so that one can delete old stores or indexes and recreate them if desired (add tests); - Refactoring: Put schema.open/schema.upgrade tests in own "describe" section
brettz9
force-pushed
the
rename-copy
branch
2 times, most recently
from
May 2, 2016 04:13
45bf8e4
to
efff6ca
Compare
… order, but the getter will continue to get the highest version. To get the current rather than highest version, the method `lastEnteredVersion()` has been added. - Refactoring: better default behavior for getJSONStorage internal method
`copyFrom` option to `addStore`)
FYI, this PR (and the one I just submitted and previous PRs) are all now ready. In addition to unit tests, I've also put them through some real world uses, so I think things should be working well now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Building on previous PRs:
addStore
accepts optionalcopyFrom
option object (used by new methods
renameStore
andcopyStore
) witha required
name
string key (the old store to copy from), an optionaldeleteOld
boolean (default isfalse
), and optionaloptions
object (for use inoverriding the old store's properties on the new store).
schema.stores
now includescopyFrom
information.