Skip to content

Commit e7f4402

Browse files
authored
Merge pull request #40 from cca-io/package-name
Update package name, CHANGELOG, LICENSE
2 parents 27a251d + 43bdfe5 commit e7f4402

File tree

6 files changed

+55
-19
lines changed

6 files changed

+55
-19
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# 3.0.0
2+
3+
- **[ BREAKING ]** Package renamed to `rescript-react-intl`.
4+
- **[ BREAKING ]** ReScript support
5+
- Now requires ReScript >= 9.1.0 and @rescript/react
6+
- The names of "enum" values now exactly match the names in JavaScript, e.g. `#"2-digit"` instead of `#twoDigit`.
7+
18
# 2.0.0
29
* **[ BREAKING ]** `bs-platform >=7.2.2`.
310
* **[ BREAKING ]** `react-intl >=4.0.0`:

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 Alex Fedoseev, Christoph Knittel
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
1-
# bs-react-intl
1+
# rescript-react-intl
22

33
[![NPM](https://nodei.co/npm/bs-react-intl.png?compact=true)](https://nodei.co/npm/bs-react-intl/)
44

5-
[BuckleScript](https://bucklescript.github.io) bindings to [react-intl].
5+
[ReScript] bindings to [react-intl].
66

7-
To extract messages from [Reason](https://reasonml.github.io) source files for localization, use [bs-react-intl-extractor](https://github.com/cknitt/bs-react-intl-extractor).
7+
To extract messages from [ReScript] source files for localization, use [rescript-react-intl-extractor].
88

99
## Installation
10+
1011
```shell
1112
# yarn
12-
yarn add bs-react-intl
13+
yarn add rescript-react-intl
1314

1415
# or npm
15-
npm install --save bs-react-intl
16+
npm install --save rescript-react-intl
1617
```
1718

19+
Note: If you need version of the bindings that still supports the old Reason syntax, use the old package name `bs-react-intl` instead.
20+
1821
## Examples
22+
1923
Clone this repo.
2024

2125
```shell
@@ -24,9 +28,13 @@ yarn start
2428
```
2529

2630
## Status
27-
bs-react-intl should cover all of the [react-intl] 3.0.0 API. If you find anything missing, please file an issue.
31+
32+
rescript-react-intl should cover all of the [react-intl] 3.0.0 API. If you find anything missing, please file an issue.
2833

2934
## Usage
35+
3036
See [`examples`](./examples) folder.
3137

32-
[react-intl]: https://github.com/formatjs/react-intl
38+
[rescript]: https://rescript-lang.org
39+
[react-intl]: https://github.com/formatjs/react-intl
40+
[rescript-react-intl-extractor]: https://github.com/cca-io/rescript-react-intl-extractor

bsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "bs-react-intl",
2+
"name": "rescript-react-intl",
33
"sources": [
44
"src",
55
{

examples/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<meta charset="utf-8">
5-
<title>bs-react-intl</title>
4+
<meta charset="utf-8" />
5+
<title>rescript-react-intl</title>
66
<link rel="stylesheet" href="./index.css" />
77
</head>
88
<body>

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"name": "bs-react-intl",
3-
"version": "2.0.0",
4-
"description": "BuckleScript bindings to react-intl",
5-
"author": "Alex Fedoseev <alex.fedoseev@gmail.com>",
2+
"name": "rescript-react-intl",
3+
"version": "3.0.0",
4+
"description": "ReScript bindings to react-intl",
5+
"author": "Christoph Knittel <ck@cca.io>",
6+
"contributors": [
7+
"Alex Fedoseev <alex.fedoseev@gmail.com>"
8+
],
69
"license": "MIT",
710
"main": "src/ReactIntl.bs.js",
811
"scripts": {
@@ -33,7 +36,7 @@
3336
},
3437
"repository": {
3538
"type": "git",
36-
"url": "https://github.com/reasonml-community/bs-react-intl"
39+
"url": "https://github.com/cca-io/rescript-react-intl"
3740
},
3841
"files": [
3942
"src",
@@ -42,9 +45,6 @@
4245
"keywords": [
4346
"react",
4447
"react-intl",
45-
"reason",
46-
"reasonml",
47-
"ocaml",
48-
"bucklescript"
48+
"rescript"
4949
]
5050
}

0 commit comments

Comments
 (0)