Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Migrate to React Native 0.71 #480

Merged
merged 37 commits into from Jan 16, 2023
Merged

feat: Migrate to React Native 0.71 #480

merged 37 commits into from Jan 16, 2023

Conversation

mrousavy
Copy link
Owner

@mrousavy mrousavy commented Nov 10, 2022

  • Uses React Native core as prefabs on Android (binary compatibility)
  • Uses new buildscript (build.gradle and CMakeLists are now significantly smaller, no more downloading, unzipping, header importing or cpp compiling - we now use prefabs for JSI)
  • Supports running on the new architecture (Fabric, TurboModules)

⚠️ Note: This is a breaking change. react-native-mmkv now only builds on RN 0.71 and above using the new architecture. For the sake of simplicity, it is not backwards compatible.

@github-actions
Copy link

github-actions bot commented Nov 10, 2022

yarn.lock changes

Summary

Status Count
ADDED 98
UPDATED 404
DOWNGRADED 6
REMOVED 72
Click to toggle table visibility
Name Status Previous Current
@actions/core UPDATED 1.6.0 1.10.0
@actions/http-client UPDATED 1.0.11 2.0.1
@ampproject/remapping ADDED - 2.2.0
@babel/code-frame UPDATED 7.15.8 7.18.6
@babel/compat-data UPDATED 7.15.0 7.20.10
@babel/core UPDATED 7.15.8 7.20.12
@babel/eslint-parser ADDED - 7.19.1
@babel/generator UPDATED 7.15.8 7.20.7
@babel/helper-annotate-as-pure UPDATED 7.15.4 7.18.6
@babel/helper-builder-binary-assignment-operator-visitor UPDATED 7.15.4 7.18.9
@babel/helper-compilation-targets UPDATED 7.15.4 7.20.7
@babel/helper-create-class-features-plugin UPDATED 7.15.4 7.20.2
@babel/helper-create-regexp-features-plugin UPDATED 7.14.5 7.19.0
@babel/helper-define-polyfill-provider UPDATED 0.2.3 0.3.3
@babel/helper-environment-visitor ADDED - 7.18.9
@babel/helper-explode-assignable-expression UPDATED 7.15.4 7.18.6
@babel/helper-function-name UPDATED 7.15.4 7.19.0
@babel/helper-get-function-arity REMOVED 7.15.4 -
@babel/helper-hoist-variables UPDATED 7.15.4 7.18.6
@babel/helper-member-expression-to-functions UPDATED 7.15.4 7.18.9
@babel/helper-module-imports UPDATED 7.15.4 7.18.6
@babel/helper-module-transforms UPDATED 7.15.8 7.20.11
@babel/helper-optimise-call-expression UPDATED 7.15.4 7.18.6
@babel/helper-plugin-utils UPDATED 7.14.5 7.20.2
@babel/helper-remap-async-to-generator UPDATED 7.15.4 7.18.9
@babel/helper-replace-supers UPDATED 7.15.4 7.19.1
@babel/helper-simple-access UPDATED 7.15.4 7.20.2
@babel/helper-skip-transparent-expression-wrappers UPDATED 7.15.4 7.20.0
@babel/helper-split-export-declaration UPDATED 7.15.4 7.18.6
@babel/helper-string-parser ADDED - 7.19.4
@babel/helper-validator-identifier UPDATED 7.15.7 7.19.1
@babel/helper-validator-option UPDATED 7.14.5 7.18.6
@babel/helper-wrap-function UPDATED 7.15.4 7.19.0
@babel/helpers UPDATED 7.15.4 7.20.7
@babel/highlight UPDATED 7.14.5 7.18.6
@babel/parser UPDATED 7.15.8 7.20.7
@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression ADDED - 7.18.6
@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining UPDATED 7.15.4 7.18.9
@babel/plugin-proposal-async-generator-functions UPDATED 7.15.8 7.20.1
@babel/plugin-proposal-class-properties UPDATED 7.14.5 7.18.6
@babel/plugin-proposal-class-static-block UPDATED 7.15.4 7.18.6
@babel/plugin-proposal-dynamic-import UPDATED 7.14.5 7.18.6
@babel/plugin-proposal-export-default-from UPDATED 7.14.5 7.18.10
@babel/plugin-proposal-export-namespace-from UPDATED 7.14.5 7.18.9
@babel/plugin-proposal-json-strings UPDATED 7.14.5 7.18.6
@babel/plugin-proposal-logical-assignment-operators UPDATED 7.14.5 7.18.9
@babel/plugin-proposal-nullish-coalescing-operator UPDATED 7.14.5 7.18.6
@babel/plugin-proposal-numeric-separator UPDATED 7.14.5 7.18.6
@babel/plugin-proposal-object-rest-spread UPDATED 7.15.6 7.20.2
@babel/plugin-proposal-optional-catch-binding UPDATED 7.14.5 7.18.6
@babel/plugin-proposal-optional-chaining UPDATED 7.14.5 7.18.9
@babel/plugin-proposal-private-methods UPDATED 7.14.5 7.18.6
@babel/plugin-proposal-private-property-in-object UPDATED 7.15.4 7.18.6
@babel/plugin-proposal-unicode-property-regex UPDATED 7.14.5 7.18.6
@babel/plugin-syntax-export-default-from UPDATED 7.14.5 7.18.6
@babel/plugin-syntax-flow UPDATED 7.14.5 7.18.6
@babel/plugin-syntax-import-assertions ADDED - 7.20.0
@babel/plugin-syntax-jsx UPDATED 7.14.5 7.18.6
@babel/plugin-syntax-typescript UPDATED 7.14.5 7.20.0
@babel/plugin-transform-arrow-functions UPDATED 7.14.5 7.18.6
@babel/plugin-transform-async-to-generator UPDATED 7.14.5 7.18.6
@babel/plugin-transform-block-scoped-functions UPDATED 7.14.5 7.18.6
@babel/plugin-transform-block-scoping UPDATED 7.15.3 7.20.2
@babel/plugin-transform-classes UPDATED 7.15.4 7.20.2
@babel/plugin-transform-computed-properties UPDATED 7.14.5 7.18.9
@babel/plugin-transform-destructuring UPDATED 7.14.7 7.20.2
@babel/plugin-transform-dotall-regex UPDATED 7.14.5 7.18.6
@babel/plugin-transform-duplicate-keys UPDATED 7.14.5 7.18.9
@babel/plugin-transform-exponentiation-operator UPDATED 7.14.5 7.18.6
@babel/plugin-transform-flow-strip-types UPDATED 7.14.5 7.19.0
@babel/plugin-transform-for-of UPDATED 7.15.4 7.18.8
@babel/plugin-transform-function-name UPDATED 7.14.5 7.18.9
@babel/plugin-transform-literals UPDATED 7.14.5 7.18.9
@babel/plugin-transform-member-expression-literals UPDATED 7.14.5 7.18.6
@babel/plugin-transform-modules-amd UPDATED 7.14.5 7.19.6
@babel/plugin-transform-modules-commonjs UPDATED 7.15.4 7.19.6
@babel/plugin-transform-modules-systemjs UPDATED 7.15.4 7.19.6
@babel/plugin-transform-modules-umd UPDATED 7.14.5 7.18.6
@babel/plugin-transform-named-capturing-groups-regex UPDATED 7.14.9 7.19.1
@babel/plugin-transform-new-target UPDATED 7.14.5 7.18.6
@babel/plugin-transform-object-assign REMOVED 7.14.5 -
@babel/plugin-transform-object-super UPDATED 7.14.5 7.18.6
@babel/plugin-transform-parameters UPDATED 7.15.4 7.20.3
@babel/plugin-transform-property-literals UPDATED 7.14.5 7.18.6
@babel/plugin-transform-react-display-name UPDATED 7.15.1 7.18.6
@babel/plugin-transform-react-jsx-development UPDATED 7.14.5 7.18.6
@babel/plugin-transform-react-jsx-self UPDATED 7.14.9 7.18.6
@babel/plugin-transform-react-jsx-source UPDATED 7.14.5 7.19.6
@babel/plugin-transform-react-jsx UPDATED 7.14.9 7.19.0
@babel/plugin-transform-react-pure-annotations UPDATED 7.14.5 7.18.6
@babel/plugin-transform-regenerator UPDATED 7.14.5 7.18.6
@babel/plugin-transform-reserved-words UPDATED 7.14.5 7.18.6
@babel/plugin-transform-runtime UPDATED 7.15.8 7.19.6
@babel/plugin-transform-shorthand-properties UPDATED 7.14.5 7.18.6
@babel/plugin-transform-spread UPDATED 7.15.8 7.19.0
@babel/plugin-transform-sticky-regex UPDATED 7.14.5 7.18.6
@babel/plugin-transform-template-literals UPDATED 7.14.5 7.18.9
@babel/plugin-transform-typeof-symbol UPDATED 7.14.5 7.18.9
@babel/plugin-transform-typescript UPDATED 7.15.8 7.20.2
@babel/plugin-transform-unicode-escapes UPDATED 7.14.5 7.18.10
@babel/plugin-transform-unicode-regex UPDATED 7.14.5 7.18.6
@babel/preset-env UPDATED 7.15.8 7.20.2
@babel/preset-flow UPDATED 7.14.5 7.18.6
@babel/preset-modules UPDATED 0.1.4 0.1.5
@babel/preset-react UPDATED 7.14.5 7.18.6
@babel/preset-typescript UPDATED 7.15.0 7.18.6
@babel/register UPDATED 7.15.3 7.18.9
@babel/runtime UPDATED 7.15.4 7.20.1
@babel/template UPDATED 7.15.4 7.20.7
@babel/traverse UPDATED 7.15.4 7.20.12
@babel/types UPDATED 7.15.6 7.20.7
@cnakazawa/watch REMOVED 1.0.4 -
@eslint/eslintrc UPDATED 0.4.3 1.4.1
@hapi/hoek UPDATED 9.2.1 9.3.0
@humanwhocodes/config-array UPDATED 0.5.0 0.11.8
@humanwhocodes/module-importer ADDED - 1.0.1
@humanwhocodes/object-schema UPDATED 1.2.0 1.2.1
@jest/create-cache-key-function UPDATED 27.2.4 29.3.1
@jest/environment ADDED - 29.3.1
@jest/fake-timers ADDED - 29.3.1
@jest/schemas ADDED - 29.0.0
@jest/types UPDATED 27.2.4 29.3.1
@jridgewell/gen-mapping ADDED - 0.3.2
@jridgewell/resolve-uri ADDED - 3.1.0
@jridgewell/set-array ADDED - 1.1.2
@jridgewell/source-map ADDED - 0.3.2
@jridgewell/sourcemap-codec ADDED - 1.4.14
@jridgewell/trace-mapping ADDED - 0.3.17
@nicolo-ribaudo/eslint-scope-5-internals ADDED - 5.1.1-v1
@octokit/auth-token UPDATED 2.5.0 3.0.2
@octokit/core UPDATED 3.5.1 4.1.0
@octokit/endpoint UPDATED 6.0.12 7.0.3
@octokit/graphql UPDATED 4.8.0 5.0.4
@octokit/openapi-types UPDATED 10.6.4 14.0.0
@octokit/plugin-paginate-rest UPDATED 2.16.7 5.0.1
@octokit/plugin-rest-endpoint-methods UPDATED 5.11.4 6.7.0
@octokit/request-error UPDATED 2.1.0 3.0.2
@octokit/request UPDATED 5.6.2 6.2.2
@octokit/rest UPDATED 18.10.0 19.0.5
@octokit/types UPDATED 6.31.3 8.0.0
@pnpm/network.ca-file ADDED - 1.0.1
@pnpm/npm-conf ADDED - 1.0.5
@react-native-community/cli-clean ADDED - 10.0.0
@react-native-community/cli-config ADDED - 10.0.0
@react-native-community/cli-debugger-ui UPDATED 6.0.0-rc.0 10.0.0
@react-native-community/cli-doctor ADDED - 10.1.0
@react-native-community/cli-hermes UPDATED 6.1.0 10.1.0
@react-native-community/cli-platform-android UPDATED 6.1.0 10.1.0
@react-native-community/cli-platform-ios UPDATED 6.1.0 10.1.0
@react-native-community/cli-plugin-metro UPDATED 6.1.0 10.1.0
@react-native-community/cli-server-api UPDATED 6.1.0 10.0.0
@react-native-community/cli-tools UPDATED 6.1.0 10.0.0
@react-native-community/cli-types UPDATED 6.0.0 10.0.0
@react-native-community/cli UPDATED 6.1.0 10.0.0
@react-native-community/eslint-config UPDATED 3.0.1 3.2.0
@react-native-community/eslint-plugin UPDATED 1.1.0 1.3.0
@react-native/normalize-color UPDATED 1.0.0 2.1.0
@release-it/conventional-changelog UPDATED 3.3.0 5.1.1
@sideway/address UPDATED 4.1.2 4.1.4
@sinclair/typebox ADDED - 0.24.51
@sindresorhus/is UPDATED 4.2.0 5.3.0
@sinonjs/commons ADDED - 1.8.5
@sinonjs/fake-timers ADDED - 9.1.2
@szmarczak/http-timer UPDATED 4.0.6 5.0.1
@tootallnate/once ADDED - 1.1.2
@tsconfig/react-native ADDED - 2.0.3
@types/cacheable-request REMOVED 6.0.2 -
@types/graceful-fs REMOVED 4.1.5 -
@types/istanbul-lib-coverage UPDATED 2.0.3 2.0.4
@types/json-schema UPDATED 7.0.9 7.0.11
@types/keyv REMOVED 3.1.3 -
@types/node UPDATED 16.10.3 18.11.9
@types/prop-types UPDATED 15.7.4 15.7.5
@types/react-native REMOVED 0.65.5 -
@types/react UPDATED 17.0.27 18.0.26
@types/responselike REMOVED 1.0.0 -
@types/semver ADDED - 7.3.13
@types/stack-utils ADDED - 2.0.1
@types/yargs-parser UPDATED 20.2.1 21.0.0
@types/yargs UPDATED 16.0.4 17.0.13
@typescript-eslint/eslint-plugin UPDATED 4.33.0 5.48.1
@typescript-eslint/experimental-utils REMOVED 4.33.0 -
@typescript-eslint/parser UPDATED 4.33.0 5.48.1
@typescript-eslint/scope-manager UPDATED 4.33.0 5.48.1
@typescript-eslint/type-utils ADDED - 5.48.1
@typescript-eslint/types UPDATED 4.33.0 5.48.1
@typescript-eslint/typescript-estree UPDATED 4.33.0 5.48.1
@typescript-eslint/utils ADDED - 5.48.1
@typescript-eslint/visitor-keys UPDATED 4.33.0 5.48.1
accepts UPDATED 1.3.7 1.3.8
acorn-walk ADDED - 8.2.0
acorn UPDATED 7.4.1 8.8.1
agent-base ADDED - 6.0.2
ajv DOWNGRADED 8.6.3 6.12.6
ansi-colors REMOVED 4.1.1 -
ansi-escapes UPDATED 4.3.2 6.0.0
ansi-regex UPDATED 5.0.1 6.0.1
ansi-styles UPDATED 4.3.0 6.2.1
appdirsjs UPDATED 1.2.5 1.2.7
argparse UPDATED 1.0.10 2.0.1
array-filter REMOVED 0.0.1 -
array-includes UPDATED 3.1.4 3.1.6
array-map REMOVED 0.0.0 -
array-reduce REMOVED 0.0.0 -
array.prototype.flatmap UPDATED 1.2.5 1.3.1
array.prototype.map ADDED - 1.0.5
astral-regex DOWNGRADED 2.0.0 1.0.0
async UPDATED 2.6.3 3.2.4
asynckit REMOVED 0.4.0 -
at-least-node REMOVED 1.0.0 -
babel-eslint REMOVED 10.1.0 -
babel-plugin-dynamic-import-node REMOVED 2.3.3 -
babel-plugin-polyfill-corejs2 UPDATED 0.2.2 0.3.3
babel-plugin-polyfill-corejs3 UPDATED 0.2.5 0.6.0
babel-plugin-polyfill-regenerator UPDATED 0.2.2 0.4.1
before-after-hook UPDATED 2.2.2 2.2.3
big-integer REMOVED 1.6.49 -
bl UPDATED 4.1.0 5.1.0
boxen UPDATED 5.1.2 7.0.0
bplist-creator REMOVED 0.0.8 -
bplist-parser REMOVED 0.2.0 -
brace-expansion UPDATED 1.1.11 2.0.1
browserslist UPDATED 4.17.3 4.21.4
buffer UPDATED 5.7.1 6.0.3
bytes UPDATED 3.0.0 3.1.2
cacheable-lookup UPDATED 5.0.4 7.0.0
cacheable-request UPDATED 7.0.2 10.2.2
camelcase UPDATED 6.2.0 7.0.0
caniuse-lite UPDATED 1.0.30001265 1.0.30001431
capture-exit REMOVED 2.0.0 -
chalk UPDATED 4.1.2 5.2.0
ci-info UPDATED 3.2.0 3.5.0
cli-boxes UPDATED 2.2.1 3.0.0
cli-cursor UPDATED 3.1.0 4.0.0
cli-spinners UPDATED 2.6.1 2.7.0
cli-width UPDATED 3.0.0 4.0.0
cliui UPDATED 7.0.4 8.0.1
clone-response REMOVED 1.0.2 -
colors REMOVED 1.4.0 -
combined-stream REMOVED 1.0.8 -
commander UPDATED 2.20.3 9.4.1
config-chain ADDED - 1.1.13
configstore UPDATED 5.0.1 6.0.0
conventional-changelog-conventionalcommits UPDATED 4.6.1 4.6.3
conventional-changelog-writer UPDATED 5.0.0 5.0.1
conventional-changelog UPDATED 3.1.24 3.1.25
conventional-commits-parser UPDATED 3.2.2 3.2.4
convert-source-map UPDATED 1.8.0 1.9.0
core-js-compat UPDATED 3.18.2 3.26.0
cosmiconfig UPDATED 7.0.1 8.0.0
crypto-random-string UPDATED 2.0.0 4.0.0
csstype UPDATED 3.0.9 3.1.1
data-uri-to-buffer ADDED - 4.0.0
dayjs UPDATED 1.10.7 1.11.6
debug UPDATED 4.3.2 4.3.4
decamelize-keys UPDATED 1.1.0 1.1.1
defaults UPDATED 1.0.3 1.0.4
define-lazy-prop ADDED - 2.0.0
define-properties UPDATED 1.1.3 1.1.4
degenerator ADDED - 3.0.2
del UPDATED 6.0.0 6.1.1
delayed-stream REMOVED 1.0.0 -
depd UPDATED 1.1.2 2.0.0
deprecated-obj REMOVED 2.0.0 -
deprecated-react-native-prop-types ADDED - 3.0.1
destroy UPDATED 1.0.4 1.2.0
dot-prop UPDATED 5.3.0 6.0.1
duplexer3 REMOVED 0.1.4 -
eastasianwidth ADDED - 0.2.0
electron-to-chromium UPDATED 1.3.861 1.4.284
emoji-regex UPDATED 8.0.0 9.2.2
enquirer REMOVED 2.3.6 -
error-stack-parser UPDATED 2.0.6 2.1.4
es-abstract UPDATED 1.19.1 1.20.4
es-array-method-boxes-properly ADDED - 1.0.0
es-get-iterator ADDED - 1.1.2
es-shim-unscopables ADDED - 1.0.0
escape-goat UPDATED 2.1.1 4.0.0
escape-string-regexp UPDATED 4.0.0 5.0.0
escodegen ADDED - 1.14.3
eslint-config-prettier UPDATED 6.15.0 8.5.0
eslint-plugin-flowtype REMOVED 2.50.3 -
eslint-plugin-ft-flow ADDED - 2.0.1
eslint-plugin-jest UPDATED 22.4.1 26.9.0
eslint-plugin-prettier UPDATED 3.1.2 4.2.1
eslint-plugin-react-hooks UPDATED 4.2.0 4.6.0
eslint-plugin-react-native UPDATED 3.11.0 4.0.0
eslint-plugin-react UPDATED 7.26.1 7.31.10
eslint-scope UPDATED 5.1.1 7.1.1
eslint-visitor-keys UPDATED 2.1.0 3.3.0
eslint UPDATED 7.32.0 8.32.0
espree UPDATED 7.3.1 9.4.1
estraverse UPDATED 5.2.0 5.3.0
exec-sh REMOVED 0.3.6 -
execa UPDATED 5.1.1 6.1.0
fast-glob UPDATED 3.2.7 3.2.12
fb-watchman UPDATED 2.0.1 2.0.2
fetch-blob ADDED - 3.2.0
figures UPDATED 3.2.0 5.0.0
file-uri-to-path ADDED - 2.0.0
filter-obj REMOVED 1.1.0 -
find-up UPDATED 4.1.0 5.0.0
flat REMOVED 5.0.2 -
flatted UPDATED 3.2.2 3.2.7
flow-parser UPDATED 0.121.0 0.185.2
form-data-encoder ADDED - 2.1.3
form-data REMOVED 4.0.0 -
formdata-polyfill ADDED - 4.0.10
fs-extra UPDATED 9.1.0 10.1.0
ftp ADDED - 0.3.10
function.prototype.name ADDED - 1.1.5
functional-red-black-tree REMOVED 1.0.1 -
functions-have-names ADDED - 1.2.3
get-intrinsic UPDATED 1.1.1 1.1.3
get-stdin REMOVED 6.0.0 -
get-uri ADDED - 3.0.2
git-raw-commits UPDATED 2.0.10 2.0.11
git-up UPDATED 4.0.5 7.0.0
git-url-parse UPDATED 11.6.0 13.1.0
glob-parent UPDATED 5.1.2 6.0.2
glob UPDATED 7.2.0 8.0.3
globals UPDATED 13.11.0 13.19.0
globby UPDATED 11.0.4 13.1.2
got UPDATED 11.8.2 12.5.3
graceful-fs UPDATED 4.2.8 4.2.10
grapheme-splitter ADDED - 1.0.4
has-bigints UPDATED 1.0.1 1.0.2
has-property-descriptors ADDED - 1.0.0
has-symbols UPDATED 1.0.2 1.0.3
has-yarn UPDATED 2.1.0 3.0.0
hermes-engine REMOVED 0.9.0 -
hermes-estree ADDED - 0.8.0
hermes-parser UPDATED 0.4.7 0.8.0
hosted-git-info UPDATED 4.0.2 4.1.0
http-errors UPDATED 1.7.3 2.0.0
http-proxy-agent ADDED - 4.0.1
http2-wrapper UPDATED 1.0.3 2.1.11
https-proxy-agent ADDED - 5.0.1
human-signals UPDATED 2.1.0 3.0.1
ignore UPDATED 5.1.8 5.2.0
import-cwd REMOVED 3.0.0 -
import-from REMOVED 3.0.0 -
import-lazy UPDATED 2.1.0 4.0.0
inquirer UPDATED 8.1.5 9.1.4
ip UPDATED 1.1.5 2.0.0
is-arguments ADDED - 1.1.1
is-callable UPDATED 1.2.4 1.2.7
is-ci UPDATED 3.0.0 3.0.1
is-core-module UPDATED 2.7.0 2.11.0
is-interactive UPDATED 1.0.0 2.0.0
is-map ADDED - 2.0.2
is-negative-zero UPDATED 2.0.1 2.0.2
is-npm UPDATED 5.0.0 6.0.0
is-number-object UPDATED 1.0.6 1.0.7
is-set ADDED - 2.0.2
is-shared-array-buffer UPDATED 1.0.1 1.0.2
is-ssh UPDATED 1.3.3 1.4.0
is-stream UPDATED 2.0.1 3.0.0
is-unicode-supported UPDATED 0.1.0 1.3.0
is-weakref UPDATED 1.0.1 1.0.2
is-yarn-global UPDATED 0.3.0 0.4.0
isarray UPDATED 1.0.0 2.0.5
iterate-iterator ADDED - 1.0.2
iterate-value ADDED - 1.0.2
jest-environment-node ADDED - 29.3.1
jest-haste-map REMOVED 26.6.2 -
jest-message-util ADDED - 29.3.1
jest-mock ADDED - 29.3.1
jest-regex-util UPDATED 26.0.0 27.5.1
jest-serializer UPDATED 26.6.2 27.5.1
jest-util UPDATED 26.6.2 29.3.1
jest-worker UPDATED 26.6.2 27.5.1
jetifier UPDATED 1.6.8 2.0.0
joi UPDATED 17.4.2 17.7.0
js-sdsl ADDED - 4.1.5
js-yaml UPDATED 3.14.1 4.1.0
jscodeshift UPDATED 0.11.0 0.13.1
json-schema-traverse DOWNGRADED 1.0.0 0.4.1
json5 UPDATED 2.2.0 2.2.3
jsonify REMOVED 0.0.0 -
jsx-ast-utils UPDATED 3.2.1 3.3.3
keyv UPDATED 4.0.3 4.5.2
klaw REMOVED 1.3.1 -
kleur UPDATED 3.0.3 4.1.5
latest-version UPDATED 5.1.0 7.0.0
lines-and-columns UPDATED 1.1.6 1.2.4
locate-path UPDATED 5.0.0 6.0.0
lodash.clonedeep REMOVED 4.5.0 -
lodash.truncate REMOVED 4.4.2 -
log-symbols UPDATED 4.1.0 5.1.0
lowercase-keys UPDATED 2.0.0 3.0.0
macos-release UPDATED 2.5.0 3.1.0
make-dir DOWNGRADED 3.1.0 2.1.0
makeerror UPDATED 1.0.11 1.0.12
memoize-one ADDED - 5.2.1
metro-babel-register REMOVED 0.66.2 -
metro-babel-transformer UPDATED 0.66.2 0.73.7
metro-cache-key UPDATED 0.66.2 0.73.7
metro-cache UPDATED 0.66.2 0.73.7
metro-config UPDATED 0.66.2 0.73.7
metro-core UPDATED 0.66.2 0.73.7
metro-file-map ADDED - 0.73.7
metro-hermes-compiler UPDATED 0.66.2 0.73.7
metro-inspector-proxy UPDATED 0.66.2 0.73.7
metro-minify-terser ADDED - 0.73.7
metro-minify-uglify UPDATED 0.66.2 0.73.7
metro-react-native-babel-preset UPDATED 0.66.2 0.73.7
metro-react-native-babel-transformer UPDATED 0.66.2 0.73.7
metro-resolver UPDATED 0.66.2 0.73.7
metro-runtime UPDATED 0.66.2 0.73.7
metro-source-map UPDATED 0.66.2 0.73.7
metro-symbolicate UPDATED 0.66.2 0.73.7
metro-transform-plugins UPDATED 0.66.2 0.73.7
metro-transform-worker UPDATED 0.66.2 0.73.7
metro UPDATED 0.66.2 0.73.7
micromatch UPDATED 4.0.4 4.0.5
mime-db UPDATED 1.50.0 1.52.0
mime-types UPDATED 2.1.32 2.1.35
mime UPDATED 2.5.2 2.6.0
mimic-fn UPDATED 2.1.0 4.0.0
mimic-response UPDATED 3.1.0 4.0.0
minimatch UPDATED 3.0.4 5.1.0
minimist UPDATED 1.2.5 1.2.7
mkdirp UPDATED 0.5.5 0.5.6
ms UPDATED 2.1.2 2.1.3
natural-compare-lite ADDED - 1.4.0
negotiator UPDATED 0.6.2 0.6.3
netmask ADDED - 2.0.2
new-github-release-url UPDATED 1.0.0 2.0.0
nocache UPDATED 2.1.0 3.0.4
node-domexception ADDED - 1.0.0
node-fetch UPDATED 2.6.5 3.3.0
node-modules-regexp REMOVED 1.0.0 -
node-releases UPDATED 1.1.77 2.0.6
normalize-url UPDATED 6.1.0 7.2.0
npm-run-path UPDATED 4.0.1 5.1.0
ob1 UPDATED 0.66.2 0.73.7
object-inspect UPDATED 1.11.0 1.12.2
object.assign UPDATED 4.1.2 4.1.4
object.entries UPDATED 1.1.5 1.1.6
object.fromentries UPDATED 2.0.5 2.0.6
object.hasown UPDATED 1.1.0 1.1.2
object.values UPDATED 1.1.5 1.1.6
on-finished UPDATED 2.3.0 2.4.1
onetime UPDATED 5.1.2 6.0.0
open UPDATED 7.4.2 8.4.0
options REMOVED 0.0.6 -
ora UPDATED 5.4.1 6.1.2
os-name UPDATED 4.0.1 5.0.1
p-cancelable UPDATED 2.1.1 3.0.0
p-limit UPDATED 2.3.0 3.1.0
p-locate UPDATED 4.1.0 5.0.0
pac-proxy-agent ADDED - 5.0.0
pac-resolver ADDED - 5.0.1
package-json UPDATED 6.5.0 8.1.0
parse-path UPDATED 4.0.3 7.0.0
parse-url UPDATED 6.0.0 8.1.0
path-key UPDATED 3.1.1 4.0.0
picocolors UPDATED 0.2.1 1.0.0
picomatch UPDATED 2.3.0 2.3.1
pirates UPDATED 4.0.1 4.0.5
plist REMOVED 3.0.4 -
prepend-file REMOVED 2.0.0 -
prepend-http REMOVED 2.0.0 -
prettier UPDATED 2.4.1 2.8.3
pretty-format UPDATED 26.6.2 29.3.1
progress REMOVED 2.0.3 -
promise.allsettled ADDED - 1.0.6
promise UPDATED 8.1.0 8.3.0
prompts UPDATED 2.4.1 2.4.2
prop-types UPDATED 15.7.2 15.8.1
proto-list ADDED - 1.2.4
protocols UPDATED 1.4.8 2.0.1
proxy-agent ADDED - 5.0.0
proxy-from-env ADDED - 1.1.0
pupa UPDATED 2.1.1 3.1.0
qs REMOVED 6.10.1 -
query-string REMOVED 6.14.1 -
raw-body ADDED - 2.5.1
react-devtools-core UPDATED 4.19.1 4.26.1
react-is UPDATED 17.0.2 18.2.0
react-native-builder-bob UPDATED 0.18.2 0.20.3
react-native-codegen UPDATED 0.0.7 0.71.3
react-native-gradle-plugin ADDED - 0.71.12
react-native UPDATED 0.66.0 0.71.0
react-shallow-renderer ADDED - 16.15.0
react UPDATED 17.0.2 18.2.0
regenerate-unicode-properties UPDATED 9.0.0 10.1.0
regenerator-runtime UPDATED 0.13.9 0.13.10
regenerator-transform UPDATED 0.14.5 0.15.0
regexp.prototype.flags UPDATED 1.3.1 1.4.3
regexpu-core UPDATED 4.8.0 5.2.1
registry-auth-token UPDATED 4.2.1 5.0.1
registry-url UPDATED 5.1.0 6.0.1
regjsgen UPDATED 0.5.2 0.7.1
regjsparser UPDATED 0.7.0 0.9.1
release-it UPDATED 14.11.6 15.6.0
remove-trailing-separator REMOVED 1.1.0 -
require-from-string REMOVED 2.0.2 -
resolve-from DOWNGRADED 5.0.0 4.0.0
resolve UPDATED 2.0.0-next.3 2.0.0-next.4
responselike UPDATED 2.0.0 3.0.0
restore-cursor UPDATED 3.1.0 4.0.0
rsvp REMOVED 4.8.5 -
rxjs UPDATED 7.4.0 7.8.0
safe-regex-test ADDED - 1.0.0
sane REMOVED 4.1.0 -
sax REMOVED 1.2.4 -
scheduler UPDATED 0.20.2 0.23.0
semver-diff UPDATED 3.1.1 4.0.0
semver UPDATED 7.3.5 7.3.8
send UPDATED 0.17.1 0.18.0
serve-static UPDATED 1.14.1 1.15.0
setprototypeof UPDATED 1.1.1 1.2.0
shell-quote UPDATED 1.7.2 1.7.4
shelljs UPDATED 0.8.4 0.8.5
signal-exit UPDATED 3.0.5 3.0.7
simple-plist REMOVED 1.1.1 -
slash UPDATED 3.0.0 4.0.0
slice-ansi DOWNGRADED 4.0.0 2.1.0
smart-buffer ADDED - 4.2.0
socks-proxy-agent ADDED - 5.0.1
socks ADDED - 2.7.1
source-map-support UPDATED 0.5.20 0.5.21
source-map UPDATED 0.7.3 0.7.4
spdx-license-ids UPDATED 3.0.10 3.0.12
split-on-first REMOVED 1.1.0 -
stack-utils ADDED - 2.0.6
stackframe UPDATED 1.2.0 1.3.4
statuses UPDATED 1.5.0 2.0.1
stream-buffers REMOVED 2.2.0 -
strict-uri-encode REMOVED 2.0.0 -
string-natural-compare ADDED - 3.0.1
string-width UPDATED 4.2.3 5.1.2
string.prototype.matchall UPDATED 4.0.6 4.0.8
string.prototype.trimend UPDATED 1.0.4 1.0.6
string.prototype.trimstart UPDATED 1.0.4 1.0.6
strip-ansi UPDATED 6.0.1 7.0.1
strip-final-newline UPDATED 2.0.0 3.0.0
supports-color UPDATED 7.2.0 8.1.1
supports-preserve-symlinks-flag ADDED - 1.0.0
table REMOVED 6.7.2 -
temp-dir REMOVED 1.0.0 -
temp-write REMOVED 4.0.0 -
temp UPDATED 0.8.3 0.8.4
terser ADDED - 5.15.1
to-readable-stream REMOVED 1.0.0 -
toidentifier UPDATED 1.0.0 1.0.1
tslib UPDATED 2.1.0 2.4.1
type-detect ADDED - 4.0.8
type-fest UPDATED 0.21.3 3.5.2
typescript UPDATED 4.4.3 4.9.4
uglify-js UPDATED 3.14.2 3.17.4
ultron REMOVED 1.0.2 -
unbox-primitive UPDATED 1.0.1 1.0.2
unicode-property-aliases-ecmascript UPDATED 2.0.0 2.1.0
unique-string UPDATED 2.0.0 3.0.0
update-browserslist-db ADDED - 1.0.10
update-notifier UPDATED 5.1.0 6.0.2
url-join UPDATED 4.0.1 5.0.0
url-parse-lax REMOVED 3.0.0 -
use-subscription REMOVED 1.5.1 -
use-sync-external-store ADDED - 1.2.0
v8-compile-cache REMOVED 2.3.0 -
vm2 ADDED - 3.9.11
walker UPDATED 1.0.7 1.0.8
web-streams-polyfill ADDED - 3.2.1
widest-line UPDATED 3.1.0 4.0.1
wildcard-match ADDED - 5.1.2
windows-release UPDATED 4.0.0 5.0.1
wrap-ansi UPDATED 7.0.0 8.0.1
ws UPDATED 7.5.5 7.5.9
xcode REMOVED 2.1.0 -
xdg-basedir UPDATED 4.0.0 5.1.0
xmlbuilder REMOVED 9.0.7 -
xmldoc REMOVED 1.1.2 -
xregexp ADDED - 2.0.0
yargs-parser UPDATED 20.2.9 21.1.1
yargs UPDATED 16.2.0 17.6.2
yocto-queue ADDED - 0.1.0

"@tsconfig/react-native": "^2.0.2",
"@types/jest": "^29.2.2",
"@types/react": "^18.0.25",
"@types/react-native": "^0.70.6",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if you remove this line?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NickGerleman you mean all 4 packages, or just the @types/react-native package?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think he means just the react-native ones; in 0.71 we bundle them into the node_module

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. Just @types/react-native which should also now be builtin with newer types.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just removed 'em - I think it works! :)

@meypod
Copy link

meypod commented Jan 5, 2023

any ETA on this ? It's really appreciated
I'm kinda in the middle of migration to 0.71 due to some changes and now I see react-native-mmkv cannot compile

@mrousavy
Copy link
Owner Author

mrousavy commented Jan 5, 2023

This already works, but I am waiting for RN 0.71 to be released before I merge & ship this :)

@meypod
Copy link

meypod commented Jan 5, 2023

Oh, nice! happy to hear it's ready

@focux
Copy link

focux commented Jan 11, 2023

Is there any plan to support Paper for those who still haven't migrated to the new architecture?

@retyui
Copy link

retyui commented Jan 13, 2023

React native 0.71 + new arch failed:

BUILD FAILED in 3m 38s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
[CXX1101] NDK at /home/i/Android/Sdk/ndk/23.1.7779620 did not have a source.properties file

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':react-native-mmkv:configureCMakeDebug[arm64-v8a]'.
> [CXX1405] error when building with cmake using /home/i/tmp/RN71/node_modules/react-native-mmkv/android/CMakeLists.txt: -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /home/i/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /home/i/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Configuring incomplete, errors occurred!
  See also "/home/i/tmp/RN71/node_modules/react-native-mmkv/android/.cxx/Debug/t38e92d3/arm64-v8a/CMakeFiles/CMakeOutput.log".
  
  C++ build system [configure] failed while executing:
      /home/i/Android/Sdk/cmake/3.18.1/bin/cmake \
        -H/home/i/tmp/RN71/node_modules/react-native-mmkv/android \
        -DCMAKE_SYSTEM_NAME=Android \
        -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
        -DCMAKE_SYSTEM_VERSION=21 \
        -DANDROID_PLATFORM=android-21 \
        -DANDROID_ABI=arm64-v8a \
        -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \
        -DANDROID_NDK=/home/i/Android/Sdk/ndk/23.1.7779620 \
        -DCMAKE_ANDROID_NDK=/home/i/Android/Sdk/ndk/23.1.7779620 \
        -DCMAKE_TOOLCHAIN_FILE=/home/i/Android/Sdk/ndk/23.1.7779620/build/cmake/android.toolchain.cmake \
        -DCMAKE_MAKE_PROGRAM=/home/i/Android/Sdk/cmake/3.18.1/bin/ninja \
        "-DCMAKE_CXX_FLAGS=-O2 -frtti -fexceptions -Wall -Wno-unused-variable -fstack-protector-all" \
        -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/i/tmp/RN71/node_modules/react-native-mmkv/android/build/intermediates/cxx/Debug/t38e92d3/obj/arm64-v8a \
        -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/home/i/tmp/RN71/node_modules/react-native-mmkv/android/build/intermediates/cxx/Debug/t38e92d3/obj/arm64-v8a \
        -DCMAKE_BUILD_TYPE=Debug \
        -DCMAKE_FIND_ROOT_PATH=/home/i/tmp/RN71/node_modules/react-native-mmkv/android/.cxx/Debug/t38e92d3/prefab/arm64-v8a/prefab \
        -B/home/i/tmp/RN71/node_modules/react-native-mmkv/android/.cxx/Debug/t38e92d3/arm64-v8a \
        -GNinja \
        -DAPP_BUILD_DIR=/home/i/tmp/RN71/android/app/build \
        -DREACT_NATIVE_DIR=/home/i/tmp/RN71/node_modules/react-native \
        -DANDROID_STL=c++_shared
    from /home/i/tmp/RN71/node_modules/react-native-mmkv/android
  CMake Warning at /home/i/Android/Sdk/ndk/23.1.7779620/build/cmake/android-legacy.toolchain.cmake:416 (message):
    An old version of CMake is being used that cannot automatically detect
    compiler attributes.  Compiler identification is being bypassed.  Some
    values may be wrong or missing.  Update to CMake 3.19 or newer to use
    CMake's built-in compiler identification.
  Call Stack (most recent call first):
    /home/i/Android/Sdk/ndk/23.1.7779620/build/cmake/android.toolchain.cmake:55 (include)
    /home/i/Android/Sdk/cmake/3.18.1/share/cmake-3.18/Modules/CMakeDetermineSystem.cmake:93 (include)
    CMakeLists.txt:1 (project)
  
  
  CMake Warning at /home/i/Android/Sdk/ndk/23.1.7779620/build/cmake/android-legacy.toolchain.cmake:416 (message):
    An old version of CMake is being used that cannot automatically detect
    compiler attributes.  Compiler identification is being bypassed.  Some
    values may be wrong or missing.  Update to CMake 3.19 or newer to use
    CMake's built-in compiler identification.
  Call Stack (most recent call first):
    /home/i/Android/Sdk/ndk/23.1.7779620/build/cmake/android.toolchain.cmake:55 (include)
    /home/i/tmp/RN71/node_modules/react-native-mmkv/android/.cxx/Debug/t38e92d3/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
    /home/i/tmp/RN71/node_modules/react-native-mmkv/android/.cxx/Debug/t38e92d3/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
  
  
  CMake Warning at /home/i/Android/Sdk/ndk/23.1.7779620/build/cmake/android-legacy.toolchain.cmake:416 (message):
    An old version of CMake is being used that cannot automatically detect
    compiler attributes.  Compiler identification is being bypassed.  Some
    values may be wrong or missing.  Update to CMake 3.19 or newer to use
    CMake's built-in compiler identification.
  Call Stack (most recent call first):
    /home/i/Android/Sdk/ndk/23.1.7779620/build/cmake/android.toolchain.cmake:55 (include)
    /home/i/tmp/RN71/node_modules/react-native-mmkv/android/.cxx/Debug/t38e92d3/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
    /home/i/tmp/RN71/node_modules/react-native-mmkv/android/.cxx/Debug/t38e92d3/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
  
  
  CMake Error at CMakeLists.txt:16 (add_subdirectory):
    add_subdirectory given source "../MMKV/Core" which is not an existing
    directory.


@Noitham
Copy link

Noitham commented Jan 15, 2023

I got this error when building android using this mmkv version (react-native 0.71) - new arch enabled:

As reference:

"@react-native-community/slider": "4.4.0",
"react-native-mmkv": "mrousavy/react-native-mmkv#feat/migrate-rn-71",
> Task :app:mergeLibDexDebug FAILED

...
...

com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: 
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.

Type com.facebook.react.viewmanagers.RNCSliderManagerDelegate is defined multiple times: /Users/.../Code/.../...node_modules/@react-native-community/slider/android/build/.transforms/fecc51725eb5ee62117cebd51726ea5a/transformed/classes/classes.dex, /Users/Users/.../Code/Users/.../Users/.../node_modules/react-native-mmkv/android/build/.transforms/5c9ea4485730d687eda318fd506e13ee/transformed/classes/classes.dex
        at com.android.builder.dexing.D8DexArchiveMerger.getExceptionToRethrow(D8DexArchiveMerger.java:151)
        at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:138)

...
...

Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: /Users/.../Code/.../.../node_modules/@react-native-community/slider/android/build/.transforms/fecc51725eb5ee62117cebd51726ea5a/transformed/classes/classes.dex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants