-
Notifications
You must be signed in to change notification settings - Fork 14
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
API changes (BREAKING) #99
Comments
Opinions/suggestions are very welcome (@Ognian?). Any API calls that you found unintuitive, awkwardly-named, or that didn't exist and you think they should, please let me know. Long-term, I might end up maintaining a |
Hello, Regarding to the API itself, I think that your suggestions are really good. When speaking of an major version and api update I would also suggest to think about making Jsonary an AMD module (https://github.com/amdjs/amdjs-api/wiki/AMD) which would allow it be be compiled by e.g. the closure compiler… (I'm using dojo build which gives an impressive speed gain when on e.g. tablets) So, improving the modularization and documentation would make it much easier to keep the API evolving... Ognian |
Nice - thanks for the suggestions. :) |
Implemented in separate branches, to avoid ruining everybody's code.
action(data, context, actionName, ...)
- adddata
argument to match other methodsdata.indices()
/data.index()
/data.indexValue()
, in favour ofdata.item()
etc.data.type()
instead ofdata.basicType()
schema.extendSchemas()
register???Listener(callback)
probable replaced withon???(callback)
data.subPath()
->data.path()
(with Relative JSON Pointer support)data.get()
anddata.set()
used to replacedata.value()
, anddata.setValue()
It's worth doing a full review of the API, to spot anything else that is useless or inelegant.
The text was updated successfully, but these errors were encountered: