@aws-amplify/ui-react-native 1.2.10 → 1.2.11

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.js CHANGED
@@ -1,101 +1,12 @@
1
1
  module.exports = {
2
- env: { node: true },
3
- root: true,
4
- ignorePatterns: [
5
- 'dist',
6
- '.eslintrc.js',
7
- 'babel.config.js',
8
- 'jest.config.js',
9
- 'jest.setup.js',
10
- ],
11
- extends: [
12
- 'eslint:recommended',
13
- 'plugin:jest/recommended',
14
- 'plugin:react/recommended',
15
- 'plugin:@typescript-eslint/recommended-requiring-type-checking',
16
- 'plugin:react-hooks/recommended',
17
-
18
- // always extend last to override previous extensions
19
- 'prettier',
20
- ],
21
- plugins: ['@typescript-eslint', 'jest', 'react', 'react-hooks'],
22
- parser: '@typescript-eslint/parser',
23
- parserOptions: {
24
- ecmaFeatures: { jsx: true },
25
- ecmaVersion: 12,
26
- project: ['tsconfig.json'],
27
- tsconfigRootDir: __dirname,
28
- sourceType: 'module',
29
- },
30
- settings: {
31
- react: {
32
- version: 'detect',
33
- },
34
- },
2
+ ignorePatterns: ['dist', '.eslintrc.js', '*.config.js', 'jest.setup.js'],
3
+ extends: ['amplify-ui/react'],
35
4
  overrides: [
36
5
  {
37
- files: ['**/*.spec.*', '**/*.test.*'],
38
- parser: '@typescript-eslint/parser',
39
- plugins: ['@typescript-eslint', 'jest'],
40
- rules: {
41
- 'jest/unbound-method': 'error',
42
- '@typescript-eslint/no-unsafe-assignment': 'off',
43
- },
6
+ extends: ['amplify-ui/jest'],
7
+ files: ['**/__mocks__/**', '**/__tests__/**'],
44
8
  },
45
9
  ],
46
- rules: {
47
- // typescript eslint rules either not in recommended rule set or overridden
48
- '@typescript-eslint/explicit-module-boundary-types': 2,
49
- '@typescript-eslint/member-ordering': 'error',
50
- '@typescript-eslint/no-extra-semi': 'error',
51
- '@typescript-eslint/no-floating-promises': 'off',
52
- '@typescript-eslint/no-unused-expressions': [
53
- 'error',
54
- { allowTernary: true },
55
- ],
56
- '@typescript-eslint/no-use-before-define': 'error',
57
- '@typescript-eslint/no-unused-vars': [
58
- 'error',
59
- { argsIgnorePattern: '_', varsIgnorePattern: '_' },
60
- ],
61
- '@typescript-eslint/prefer-nullish-coalescing': 'error',
62
- '@typescript-eslint/restrict-template-expressions': 'off',
63
- '@typescript-eslint/unbound-method': 'off',
64
-
65
- // eslint rules either not in recommended rule set or overridden
66
- 'comma-dangle': ['error', 'only-multiline'],
67
- 'function-paren-newline': 'off',
68
- 'generator-star-spacing': 'off',
69
- 'global-require': 'off',
70
- 'implicit-arrow-linebreak': 'off',
71
- 'max-params': 2,
72
- 'no-alert': 'error',
73
- 'no-console': 'error',
74
- 'no-eval': 'error',
75
- 'no-tabs': ['error', { allowIndentationTabs: true }],
76
- 'no-unused-vars': 'off', // prefer @typescript-eslint version
77
- 'prefer-const': 'error',
78
- 'prefer-destructuring': ['error', { array: false, object: true }],
79
-
80
- // jest rules either not in recommended rule set or overridden
81
- 'jest/expect-expect': ['error', { assertFunctionNames: ['expect*'] }],
82
- 'jest/no-mocks-import': 'off',
83
-
84
- // react rules either not in recommended rule set or overridden
85
- 'react/destructuring-assignment': ['error', 'always'],
86
- 'react/jsx-boolean-value': 'error',
87
- 'react/jsx-no-constructed-context-values': 'error',
88
- 'react/jsx-no-useless-fragment': ['error', { allowExpressions: true }],
89
- 'react/jsx-props-no-spreading': 'off',
90
- 'react/jsx-wrap-multilines': ['error', { declaration: 'ignore' }],
91
- 'react/no-array-index-key': 'off',
92
- 'react/no-danger': 'error',
93
- 'react/no-unused-prop-types': 'error',
94
- 'react/prop-types': 'off',
95
- 'react/static-property-placement': ['error', 'static public field'],
96
-
97
- // react hook rules
98
- 'react-hooks/rules-of-hooks': 'error',
99
- 'react-hooks/exhaustive-deps': 'error',
100
- },
10
+ // point to local tsconfig
11
+ parserOptions: { project: ['tsconfig.json'], tsconfigRootDir: __dirname },
101
12
  };
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @aws-amplify/ui-react-native
2
2
 
3
+ ## 1.2.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`ee2c6981e`](https://github.com/aws-amplify/amplify-ui/commit/ee2c6981e19413f0d9a9fd093d14be934ae5d63b), [`9cc835828`](https://github.com/aws-amplify/amplify-ui/commit/9cc8358284be497e67911c335dfda76c8f41bf98)]:
8
+ - @aws-amplify/ui@5.5.8
9
+ - @aws-amplify/ui-react-core@2.1.16
10
+
3
11
  ## 1.2.10
4
12
 
5
13
  ### Patch Changes
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.2.10";
1
+ export declare const VERSION = "1.2.11";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.2.10';
1
+ export const VERSION = '1.2.11';
package/jest.setup.js CHANGED
@@ -1,3 +1,3 @@
1
1
  global.navigator = {
2
- ClientDevice_Browser: jest.fn().mockImplementation(() => Promise.resolve()),
2
+ ClientDevice_Browser: jest.fn(Promise.resolve),
3
3
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react-native",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,9 +12,9 @@
12
12
  "dev": "yarn build:dist --watch",
13
13
  "lint": "yarn typecheck && eslint src",
14
14
  "prebuild": "rimraf dist",
15
- "test": "yarn test:unit",
16
- "test:unit": "jest",
17
- "test:unit:watch": "yarn test:unit --watch",
15
+ "test": "jest",
16
+ "test:ci": "yarn test",
17
+ "test:watch": "yarn test --watch",
18
18
  "typecheck": "tsc --noEmit"
19
19
  },
20
20
  "devDependencies": {
@@ -26,16 +26,9 @@
26
26
  "@types/react": "^17.0.2",
27
27
  "@types/react-native": "^0.67.6",
28
28
  "@types/react-test-renderer": "^17.0.1",
29
- "@typescript-eslint/eslint-plugin": "^5.20.0",
30
- "@typescript-eslint/parser": "^5.20.0",
31
29
  "babel-jest": "^28.0.3",
32
30
  "eslint": "^8.14.0",
33
- "eslint-config-prettier": "^8.5.0",
34
- "eslint-plugin-import": "^2.26.0",
35
- "eslint-plugin-jest": "^26.1.4",
36
- "eslint-plugin-prettier": "^4.0.0",
37
- "eslint-plugin-react": "^7.29.4",
38
- "eslint-plugin-react-hooks": "^4.4.0",
31
+ "eslint-config-amplify-ui": "0.0.0",
39
32
  "metro-react-native-babel-preset": "^0.70.2",
40
33
  "react": "^17.0.2",
41
34
  "react-native": "^0.68.1",
@@ -44,8 +37,8 @@
44
37
  "rimraf": "^3.0.2"
45
38
  },
46
39
  "dependencies": {
47
- "@aws-amplify/ui": "5.5.7",
48
- "@aws-amplify/ui-react-core": "2.1.15"
40
+ "@aws-amplify/ui": "5.5.8",
41
+ "@aws-amplify/ui-react-core": "2.1.16"
49
42
  },
50
43
  "peerDependencies": {
51
44
  "aws-amplify": ">= 5.0.1",
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.2.10';
1
+ export const VERSION = '1.2.11';