- Updated
README.md
file by adding more information about supported languages - Formatted
CHANGELOG.md
file - Added more tests
- Added the German 🇩🇪 language support
- Formatted
CHANGELOG.md
file
- Updated Go version in
go.mod
to1.13
- Changed package namespace to
github.com/SerhiiCho/timeago/v2
to match Go versioning rules
- Updated Go version in
go.mod
from1.13
to1.21.0
- Updated
CHANGELOG.md
file
- Removed printing number getting form. Commit
- Renamed master branch to main
- Added more tests
- Simplified code
- Replaced deprecated
ioutil.ReadFile
withos.ReadFile
- Changed typo in README.md file
- Added ability to overwrite output strings for custom values
- Code base refactoring. Made source code look nicer
- Code base refactoring. Made source code look nicer
- Documentation improvements and small changes
- Fixed bug in test file
tests/utils.go
related to not properly counting months and years when testing - Added link to
README.md
file
- Added so that
Parse
function can except not only past date but also future date and return correct result. Closes #23 - Added section
12 Features
to theREADME.md
- Added option
justNow
that printsJust now
if time is within 60 minutes - Added option
noSuffix
that removesago
from the printed result - Added more info to
OPTIONS.md
documentation file
- Changed:
- Renamed
Lang
structure tolang
to make it private - Renamed
Rule
structure torule
to make it private - Changed location configurations. Now package can work without location configuration
- Renamed
- Removed:
- Removed badge from
README.md
file - Removed tests from language files and added 1 test to
online_test.go
file
- Removed badge from
- Added:
- Added anchors to "Contribute translation" docs
- Added 2 new GitHub badges
- Added more tests and test coverage
- Changed:
- Improved tests for languages by changing the way to write them
- Fixed:
- Fixed mistakes in Ukrainian 🇺🇦 language translation
- Added support for Dutch 🇳🇱 language
- Fixed typo in docs
- Added more info to
contribute a translation guide
- Fixed:
- Fixed not working anchor tag in
OPTIONS.md
file
- Fixed not working anchor tag in
- Added:
- Added emoji to Release notes title in
CHANGELOG.md
- Added
.gitattributes
file - Added Example usage on
repl.it
website - Added nice image banner to
README.md
file
- Added emoji to Release notes title in
- Added:
- Added ability for
Parse
method to except unix timestamp - Added ability for
Parse
method to exceptTime
from Go time package
- Added ability for
- Changed:
- Renamed
Take
method toParse
- Changed the way you pass options
- Renamed
Set
method toSetConfig
- Changed the way you set configurations for the package
- Renamed
- Documentation:
- Added more information to docs
- Added
docs
directory with all the docs - Changed structure of the
CHANGELOG.md
- Other:
- Refactored and rewritten code
- Improved documentation for the package
- Added caching the parsed results into memory to speed up the program. After this change, it will only parse json files once
- Changed type for the special rule in
rules.go
file - Improved docs by adding more information about how to contribute a language support
- Added support for Ukrainian language
- Improved documentation
- Made easy to contribute another language
- Fixed mistake with failing test
- Added ability to add rules to a language. We need it in order to make ability easily add a new translation for the package. Each language will have it's own set of rules
- Fixed bug with wrong path for plugin root