API updates for v0.5: the renamening #59
Merged
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.
Several API naming changes that have been buffered and planned for a while are now getting applied. :D
The CHANGELOG diff says it as well, but for recap in github's PR UI:
NodeStyle
->NodePrototype
.Style
; they're accordingly also renamed toPrototype
.KeyStyle
andValueStyle
; they're accordingly also renamed toKeyPrototype
andValuePrototype
.(Node).Lookup{Foo}
->(Node).LookupBy{Foo}
.(Node).Lookup
->(Node).LookupNode
.s/Lookup(/LookupNode(/g
, and thens/"Lookup"/"LookupNode"/g
to catch a few error message strings, so consumers shouldn't have it much harder.)(Node).LookupByNode
.ipld.Undef
->ipld.Absent
, and(Node).IsUndefined
->(Node).IsAbsent
.All of these changes are simple renames. The compiler should highlight them instantly for anyone updating their use of this library; the fixes to consuming code are trivial to apply; and this should generally be easy to absorb.
Nonetheless, since they're technically "breaking" changes, you'll find that
v0.4
was tagged immediately before the start of this branch; and I'll be tagging av0.5
as soon as this branch merges to master. This should make it easier to step through just these changes (and nothing else) all at once, at the consumer's leisure.