react-i18next 14.0.0 → 14.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.json ADDED
@@ -0,0 +1,115 @@
1
+ {
2
+ "extends": ["airbnb", "prettier"],
3
+ "parser": "@babel/eslint-parser",
4
+ "parserOptions": {
5
+ "ecmaVersion": 8,
6
+ "ecmaFeatures": {
7
+ "experimentalObjectRestSpread": true,
8
+ "impliedStrict": true,
9
+ "classes": true
10
+ }
11
+ },
12
+ "env": {
13
+ "browser": true,
14
+ "node": true
15
+ },
16
+ "rules": {
17
+ "no-debugger": 0,
18
+ "no-alert": 0,
19
+ "no-unused-vars": [
20
+ 1,
21
+ {
22
+ "argsIgnorePattern": "res|next|^err"
23
+ }
24
+ ],
25
+ "prefer-arrow-callback": [
26
+ "error",
27
+ {
28
+ "allowNamedFunctions": true
29
+ }
30
+ ],
31
+ "prefer-const": [
32
+ "error",
33
+ {
34
+ "destructuring": "all"
35
+ }
36
+ ],
37
+ "arrow-body-style": [2, "as-needed"],
38
+ "no-unused-expressions": [
39
+ 2,
40
+ {
41
+ "allowTaggedTemplates": true
42
+ }
43
+ ],
44
+ "no-param-reassign": [
45
+ 2,
46
+ {
47
+ "props": false
48
+ }
49
+ ],
50
+ "no-console": 0,
51
+ "no-use-before-define": 0,
52
+ "no-nested-ternary": 0,
53
+ "import/prefer-default-export": 0,
54
+ "import/no-extraneous-dependencies": 1,
55
+ "import/no-named-as-default-member": 1,
56
+ "import": 0,
57
+ "func-names": 0,
58
+ "space-before-function-paren": 0,
59
+ "comma-dangle": 0,
60
+ "max-len": 0,
61
+ "import/extensions": 0,
62
+ "no-underscore-dangle": 0,
63
+ "consistent-return": 0,
64
+ "react/display-name": 1,
65
+ "react/no-array-index-key": 0,
66
+ "react/jsx-no-useless-fragment": [
67
+ "error",
68
+ {
69
+ "allowExpressions": true
70
+ }
71
+ ],
72
+ "react/react-in-jsx-scope": 0,
73
+ "react/prefer-stateless-function": 0,
74
+ "react/forbid-prop-types": 0,
75
+ "react/no-unescaped-entities": 0,
76
+ "react/prop-types": 0,
77
+ "jsx-a11y/accessible-emoji": 0,
78
+ "react/jsx-filename-extension": [
79
+ 1,
80
+ {
81
+ "extensions": [".js", ".jsx"]
82
+ }
83
+ ],
84
+ "react/no-unknown-property": [
85
+ "error",
86
+ {
87
+ "ignore": ["i18nIsDynamicList"]
88
+ }
89
+ ],
90
+ "radix": 0,
91
+ "no-shadow": [
92
+ 2,
93
+ {
94
+ "hoist": "all",
95
+ "allow": ["resolve", "reject", "done", "next", "err", "error"]
96
+ }
97
+ ],
98
+ "quotes": [
99
+ 2,
100
+ "single",
101
+ {
102
+ "avoidEscape": true,
103
+ "allowTemplateLiterals": true
104
+ }
105
+ ],
106
+ "jsx-a11y/href-no-hash": "off",
107
+ "jsx-a11y/anchor-is-valid": [
108
+ "warn",
109
+ {
110
+ "aspects": ["invalidHref"]
111
+ }
112
+ ],
113
+ "react/jsx-props-no-spreading": 0
114
+ }
115
+ }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 14.0.2
2
+
3
+ - Fix/bug [1691](https://github.com/i18next/react-i18next/issues/1691) make returned t function identical upon second effect run in strict mode [1716](https://github.com/i18next/react-i18next/pull/1716)
4
+
5
+ ### 14.0.1
6
+
7
+ - types: fix typo in `CustomInstanceExtensions` [1713](https://github.com/i18next/react-i18next/pull/1713)
8
+
1
9
  ### 14.0.0
2
10
 
3
11
  - types: reportNamespaces is now optional, should fix [1693](https://github.com/i18next/react-i18next/issues/1693)
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2023 i18next
3
+ Copyright (c) 2024 i18next
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # react-i18next [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Awesome%20react-i18next%20for%20react.js%20based%20on%20i18next%20internationalization%20ecosystem%20&url=https://github.com/i18next/react-i18next&via=jamuhl&hashtags=i18n,reactjs,js,dev)
2
2
 
3
- [![CircleCI](https://circleci.com/gh/i18next/react-i18next.svg?style=svg)](https://circleci.com/gh/i18next/react-i18next)
3
+ [![Lint & Test](https://github.com/i18next/react-i18next/actions/workflows/lint_and_test.yml/badge.svg)](https://github.com/i18next/react-i18next/actions/workflows/lint_and_test.yml)
4
4
  [![Code Climate](https://codeclimate.com/github/codeclimate/codeclimate/badges/gpa.svg)](https://codeclimate.com/github/i18next/react-i18next)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/i18next/react-i18next/badge.svg)](https://coveralls.io/github/i18next/react-i18next)
6
6
  [![Quality][quality-badge]][quality-url]