Skip to content

Commit 4dee2d7

Browse files
authored
Remove Compatibility note from READMEs (#483)
1 parent 9b16a6d commit 4dee2d7

File tree

6 files changed

+9
-62
lines changed

6 files changed

+9
-62
lines changed

fluent-bundle/README.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The API reference is available at https://projectfluent.org/fluent.js/bundle.
4545

4646
## Compatibility
4747

48-
`fluent` requires the following `Intl` formatters:
48+
`@fluent/bundle` requires the following `Intl` formatters:
4949

5050
- `Intl.DateTimeFormat` (standard, well-supported)
5151
- `Intl.NumberFormat` (standard, well-supported)
@@ -59,12 +59,10 @@ import 'intl-pluralrules';
5959
import {FluentBundle} from '@fluent/bundle';
6060
```
6161

62-
For legacy browsers, the `compat` build has been transpiled using Babel's [env
63-
preset][]. It requires the regenerator runtime provided by [babel-polyfill][].
62+
See also the [Compatibility][] article on the `fluent.js` wiki.
6463

65-
```javascript
66-
import {FluentBundle} from '@fluent/bundle/compat';
67-
```
64+
[intl-pluralrules]: https://www.npmjs.com/package/intl-pluralrules
65+
[Compatibility]: https://github.com/projectfluent/fluent.js/wiki/Compatibility
6866

6967

7068
## Learn more
@@ -73,10 +71,5 @@ Find out more about Project Fluent at [projectfluent.org][], including
7371
documentation of the Fluent file format ([FTL][]), links to other packages and
7472
implementations, and information about how to get involved.
7573

76-
77-
[intl-pluralrules]: https://www.npmjs.com/package/intl-pluralrules
78-
[babel-polyfill]: https://babeljs.io/docs/usage/polyfill/
79-
[Stage 3 proposal]:https://github.com/tc39/proposal-intl-plural-rules
80-
[env preset]: https://babeljs.io/docs/plugins/preset-env/
8174
[projectfluent.org]: https://projectfluent.org
8275
[FTL]: https://projectfluent.org/fluent/guide/

fluent-dedent/README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,11 @@ assert(message === "\nhello = Hello, world!\n");
7676
```
7777

7878

79-
## Compatibility
80-
81-
For legacy browsers, the `compat` build has been transpiled using Babel's [env
82-
preset][].
83-
84-
```javascript
85-
import ftl from '@fluent/dedent/compat';
86-
```
87-
88-
8979
## Learn more
9080

9181
Find out more about Project Fluent at [projectfluent.org][], including
9282
documentation of the Fluent file format ([FTL][]), links to other packages and
9383
implementations, and information about how to get involved.
9484

95-
96-
[env preset]: https://babeljs.io/docs/plugins/preset-env/
9785
[projectfluent.org]: https://projectfluent.org
9886
[FTL]: https://projectfluent.org/fluent/guide/

fluent-langneg/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ the natural language.
77
It's main function is to provide functionality around the [Intl.Locale][] API
88
with a focus on language negotiation, matching and selection.
99

10+
[Intl.Locale]: https://github.com/tc39/proposal-intl-locale
11+
1012

1113
## Installation
1214

@@ -94,7 +96,5 @@ Find out more about Project Fluent at [projectfluent.org][], including
9496
documentation of the Fluent file format ([FTL][]), links to other packages and
9597
implementations, and information about how to get involved.
9698

97-
9899
[projectfluent.org]: https://projectfluent.org
99100
[FTL]: https://projectfluent.org/fluent/guide/
100-
[Intl.Locale]: https://github.com/tc39/proposal-intl-locale

fluent-react/README.md

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -28,29 +28,9 @@ scenarios. You will likely also need to install a few other packages:
2828
Consult the [wiki][] for documentation on how to set up and use
2929
`@fluent/react`.
3030

31-
[wiki]: https://github.com/projectfluent/fluent.js/wiki/React-Bindings
32-
3331
The API reference is available at https://projectfluent.org/fluent.js/react.
3432

35-
36-
## Compatibility
37-
38-
For legacy browsers, the `compat` build has been transpiled using Babel's [env
39-
preset][]:
40-
41-
```javascript
42-
import "@fluent/react/compat";
43-
```
44-
45-
In some cases, using the `compat` build may be needed even if you target
46-
modern browsers. For instance, the [`create-react-app` boilerplate uses
47-
UglifyJS to minify its files][create-react-app-minify]. As of November 2017,
48-
UglifyJS doesn't support some of the new JavaScript syntax features. By using
49-
the `compat` build of all `@fluent` packages you can ensure that the
50-
minifiction works properly.
51-
52-
53-
[create-react-app-minify]: https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-run-build-fails-to-minify
33+
[wiki]: https://github.com/projectfluent/fluent.js/wiki/React-Bindings
5434

5535

5636
## Learn more
@@ -59,7 +39,5 @@ Find out more about Project Fluent at [projectfluent.org][], including
5939
documentation of the Fluent file format ([FTL][]), links to other packages and
6040
implementations, and information about how to get involved.
6141

62-
63-
[env preset]: https://babeljs.io/docs/plugins/preset-env/
6442
[projectfluent.org]: https://projectfluent.org
6543
[FTL]: https://projectfluent.org/fluent/guide/

fluent-sequence/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ depleting the iterator.
5555
The API reference is available at
5656
https://projectfluent.org/fluent.js/sequence.
5757

58+
[`cached-iterable`]: https://www.npmjs.com/package/cached-iterable
59+
5860

5961
## Learn more
6062

6163
Find out more about Project Fluent at [projectfluent.org][], including
6264
documentation of the Fluent file format ([FTL][]), links to other packages and
6365
implementations, and information about how to get involved.
6466

65-
66-
[`cached-iterable`]: https://www.npmjs.com/package/cached-iterable
6767
[projectfluent.org]: https://projectfluent.org
6868
[FTL]: https://projectfluent.org/fluent/guide/

fluent-syntax/README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,11 @@ assert(res instanceof Resource);
3030
The API reference is available at https://projectfluent.org/fluent.js/syntax.
3131

3232

33-
## Compatibility
34-
35-
For legacy browsers, the `compat` build has been transpiled using Babel's [env
36-
preset][]:
37-
38-
```javascript
39-
import "@fluent/syntax/compat";
40-
```
41-
42-
4333
## Learn more
4434

4535
Find out more about Project Fluent at [projectfluent.org][], including
4636
documentation of the Fluent file format ([FTL][]), links to other packages and
4737
implementations, and information about how to get involved.
4838

49-
50-
[env preset]: https://babeljs.io/docs/plugins/preset-env/
5139
[projectfluent.org]: https://projectfluent.org
5240
[FTL]: https://projectfluent.org/fluent/guide/

0 commit comments

Comments
 (0)