Skip to content

Commit

Permalink
Merge pull request #627 from projectfluent/updates
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
eemeli authored Feb 28, 2024
2 parents f073055 + a829b5e commit 9522dcf
Show file tree
Hide file tree
Showing 26 changed files with 2,264 additions and 5,176 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/legacy.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18, latest]
node: [18, 20, latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{matrix.node}}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{matrix.node}}
- run: npm ci
Expand Down
11 changes: 1 addition & 10 deletions fluent-bundle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,8 @@ The API reference is available at https://projectfluent.org/fluent.js/bundle.

- `Intl.DateTimeFormat` (standard, well-supported)
- `Intl.NumberFormat` (standard, well-supported)
- `Intl.PluralRules` (standard, new in ECMAScript 2018)

`Intl.PluralRules` may already be available in some engines. In most cases,
however, a polyfill will be required. We recommend [intl-pluralrules][].

```javascript
import "intl-pluralrules";
import { FluentBundle } from "@fluent/bundle";
```
- `Intl.PluralRules` (standard, well-supported)

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

[intl-pluralrules]: https://www.npmjs.com/package/intl-pluralrules
[compatibility]: https://github.com/projectfluent/fluent.js/wiki/Compatibility
2 changes: 1 addition & 1 deletion fluent-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"test": "mocha 'test/*_test.js'"
},
"engines": {
"node": ">=14.0.0",
"node": ">=18.0.0",
"npm": ">=7.0.0"
},
"devDependencies": {
Expand Down
5 changes: 4 additions & 1 deletion fluent-bundle/src/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,5 +542,8 @@ export class FluentResource {
}

class Indent {
constructor(public value: string, public length: number) {}
constructor(
public value: string,
public length: number
) {}
}
2 changes: 1 addition & 1 deletion fluent-dedent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"test": "mocha 'test/*_test.js'"
},
"engines": {
"node": ">=14.0.0",
"node": ">=18.0.0",
"npm": ">=7.0.0"
}
}
4 changes: 2 additions & 2 deletions fluent-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
"test": "c8 mocha -ui tdd --require ./test/index.js 'test/*_test.js'"
},
"engines": {
"node": ">=14.0.0",
"node": ">=18.0.0",
"npm": ">=7.0.0"
},
"devDependencies": {
"@fluent/bundle": "^0.18.0",
"jsdom": "^21.1.0"
"jsdom": "^24.0.0"
},
"dependencies": {
"cached-iterable": "^0.3"
Expand Down
6 changes: 3 additions & 3 deletions fluent-dom/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ Object.keys(document.defaultView).forEach(property => {
}
});

global.navigator = {
userAgent: "node.js",
};
Object.defineProperty(global, "navigator", {
get: () => ({ userAgent: "node.js" }),
});
2 changes: 1 addition & 1 deletion fluent-langneg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"test": "mocha 'test/*_test.js'"
},
"engines": {
"node": ">=14.0.0",
"node": ">=18.0.0",
"npm": ">=7.0.0"
}
}
2 changes: 1 addition & 1 deletion fluent-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ maximum flexibility, `@fluent/react` expects the developer to write a little
bit of a setup code related to language negotiation and translation fetching.
It makes `@fluent/react` unopinionated and suitable for many different
scenarios. You will likely also need to install a few other packages:
`@fluent/bundle`, `@fluent/langneg` and `intl-pluralrules`.
`@fluent/bundle` and `@fluent/langneg`.

Consult the [wiki][] for documentation on how to set up and use
`@fluent/react`.
Expand Down
1 change: 1 addition & 0 deletions fluent-react/example/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.parcel-cache/
dist/
*.tgz
package-lock.json
Loading

0 comments on commit 9522dcf

Please sign in to comment.