Skip to content

Commit

Permalink
release v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadorequest committed Jan 9, 2020
1 parent 1e801b8 commit 5ae61c4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
CHANGELOG
===

- v2.0.0 - 2020-01-09
- [Release] Release v2 with **breaking API changes**
- Remove all stuff that was related to our internal business logic at Unly (this lib is a port of an internal project and was suffering from internal business logic/needs that shouldn't have been part of the Open Source release, they have been removed)
- [BREAKING] Removed API function `universalLanguagesDetect` (plural), kept only `universalLanguageDetect`
- [BREAKING] Renamed `acceptedLanguages` into `supportedLanguages` to avoid confusion with `accept-language` header
- [BREAKING] Renamed `acceptLanguage` into `acceptLanguageHeader` for clarity
- v1.0.0 - 2019-12-30
- [Release] Release production-ready 1.0.0 version
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ _It is not out of scope though, PR are welcome to support universal locale detec
* [Versions](#versions)
+ [SemVer](#semver)
* [Releasing and publishing](#releasing-and-publishing)
- [Changelog](#changelog)
- [See [changelog](./CHANGELOG.md)](#see-changelogchangelogmd)
- [License](#license)

<!-- tocstop -->
Expand Down Expand Up @@ -146,6 +148,13 @@ npm publish # Will publish to NPM

---

## Changelog

> Our API change (including breaking changes and "how to migrate") are documented in the Changelog.
See [changelog](./CHANGELOG.md)
---

## License

MIT
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@unly/universal-language-detector",
"version": "2.0.0-beta.0",
"version": "2.0.0",
"description": "Language detector that works universally (browser + server) - Meant to be used with a universal framework, such as Next.js",
"scripts": {
"start": "cross-env-shell 'concurrently -p '{name}' -n 'lint,build,test' -c 'gray.bgWhite,yellow.bgBlue,green.bgWhite' \"yarn lint\" \"yarn build\" \"yarn test\"'",
Expand All @@ -12,10 +12,10 @@
"lint:fix": "eslint src --ext .ts --ext .tsx --fix",
"lint:fix:preview": "eslint src --ext .ts --ext .tsx --fix-dry-run",
"preversion": "yarn lint:once && yarn test:once && yarn doc:toc",
"postversion": "git push && git push --tags",
"postversion": "git add README.md CHANGELOG.md && git commit --amend --no-edit && git push && git push --tags",
"prepublishOnly": "yarn clean && yarn build:once && yarn publish:preview && cli-confirm \"Do you really want to release a new version? Please check the files that will be publicly released first. (y/n)\"",
"publish:preview": "npm pack && tar -xvzf *.tgz && rm -rf package *.tgz",
"release": "yarn bump --prompt --commit --tag --push",
"release": "yarn bump --prompt --commit --tag",
"releaseAndPublish": "yarn release && npm publish",
"doc:toc": "yarn markdown-toc --maxdepth 4 -i README.md",
"test": "NODE_ENV=test jest --watchAll",
Expand Down

0 comments on commit 5ae61c4

Please sign in to comment.