Skip to content

Tags: haritsfahreza/libra

Tags

v1.3.0

Toggle v1.3.0's commit message
Ignore unexported struct field

There is an error when users try to compare structs that has unexported
field inside, although it's not being used. To fix the issue, I ignore
unexported fields when comparing the struct.

v1.2.1

Toggle v1.2.1's commit message
Find object ID for non-changed diff

Previously, both generate new and removed diff were not generating the
object ID field in their diff. Since it will be needed to get the object
ID there, I add the object ID finder in both of them.

v1.2.0

Toggle v1.2.0's commit message
Move comparator unit test folder

To get a better code coverage report, I move the comparator unit test to
the same package with the comparator itself. No logic change.

v1.1.1

Toggle v1.1.1's commit message
Fix generate change diff on Struct

Since we have the filteredValue variable, we need to use the same
variable when we are trying to generate the Diffs. So I fix it by
changing the variable that need to be compared.

v1.1.0

Toggle v1.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Refactor Compare function (#15)

I start to feel the pain when trying to enhance the code to cover the edge cases. So, I decided to refactor the Compare function by separating each of the kind comparators. I also move the Diff struct from libra package to diff package, to avoid cyclic between the library.

v1.0.0

Toggle v1.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add capabilities to compare nested base type (#13)

There is a possibilities to compare a struct or map with the nested struct or map in it.

So I add the capabilities to compare nested struct and map