Skip to content

Commit 9522dcf

Browse files
authored
Merge pull request #627 from projectfluent/updates
Update dependencies
2 parents f073055 + a829b5e commit 9522dcf

File tree

26 files changed

+2264
-5176
lines changed

26 files changed

+2264
-5176
lines changed

.github/workflows/legacy.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
node: [16, 18, latest]
13+
node: [18, 20, latest]
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: Use Node.js ${{matrix.node}}
17-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@v4
1818
with:
1919
node-version: ${{matrix.node}}
2020
- run: npm ci

fluent-bundle/README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,8 @@ The API reference is available at https://projectfluent.org/fluent.js/bundle.
4747

4848
- `Intl.DateTimeFormat` (standard, well-supported)
4949
- `Intl.NumberFormat` (standard, well-supported)
50-
- `Intl.PluralRules` (standard, new in ECMAScript 2018)
51-
52-
`Intl.PluralRules` may already be available in some engines. In most cases,
53-
however, a polyfill will be required. We recommend [intl-pluralrules][].
54-
55-
```javascript
56-
import "intl-pluralrules";
57-
import { FluentBundle } from "@fluent/bundle";
58-
```
50+
- `Intl.PluralRules` (standard, well-supported)
5951

6052
See also the [Compatibility][] article on the `fluent.js` wiki.
6153

62-
[intl-pluralrules]: https://www.npmjs.com/package/intl-pluralrules
6354
[compatibility]: https://github.com/projectfluent/fluent.js/wiki/Compatibility

fluent-bundle/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"test": "mocha 'test/*_test.js'"
4646
},
4747
"engines": {
48-
"node": ">=14.0.0",
48+
"node": ">=18.0.0",
4949
"npm": ">=7.0.0"
5050
},
5151
"devDependencies": {

fluent-bundle/src/resource.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,5 +542,8 @@ export class FluentResource {
542542
}
543543

544544
class Indent {
545-
constructor(public value: string, public length: number) {}
545+
constructor(
546+
public value: string,
547+
public length: number
548+
) {}
546549
}

fluent-dedent/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"test": "mocha 'test/*_test.js'"
3131
},
3232
"engines": {
33-
"node": ">=14.0.0",
33+
"node": ">=18.0.0",
3434
"npm": ">=7.0.0"
3535
}
3636
}

fluent-dom/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@
4040
"test": "c8 mocha -ui tdd --require ./test/index.js 'test/*_test.js'"
4141
},
4242
"engines": {
43-
"node": ">=14.0.0",
43+
"node": ">=18.0.0",
4444
"npm": ">=7.0.0"
4545
},
4646
"devDependencies": {
4747
"@fluent/bundle": "^0.18.0",
48-
"jsdom": "^21.1.0"
48+
"jsdom": "^24.0.0"
4949
},
5050
"dependencies": {
5151
"cached-iterable": "^0.3"

fluent-dom/test/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ Object.keys(document.defaultView).forEach(property => {
1010
}
1111
});
1212

13-
global.navigator = {
14-
userAgent: "node.js",
15-
};
13+
Object.defineProperty(global, "navigator", {
14+
get: () => ({ userAgent: "node.js" }),
15+
});

fluent-langneg/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"test": "mocha 'test/*_test.js'"
3939
},
4040
"engines": {
41-
"node": ">=14.0.0",
41+
"node": ">=18.0.0",
4242
"npm": ">=7.0.0"
4343
}
4444
}

fluent-react/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ maximum flexibility, `@fluent/react` expects the developer to write a little
2222
bit of a setup code related to language negotiation and translation fetching.
2323
It makes `@fluent/react` unopinionated and suitable for many different
2424
scenarios. You will likely also need to install a few other packages:
25-
`@fluent/bundle`, `@fluent/langneg` and `intl-pluralrules`.
25+
`@fluent/bundle` and `@fluent/langneg`.
2626

2727
Consult the [wiki][] for documentation on how to set up and use
2828
`@fluent/react`.

0 commit comments

Comments
 (0)