Commit Graph

38 Commits

Author SHA1 Message Date
Zhu Liang 7270e449ad
Update tfjs-react-native dependencies (#8062)
FEATURE
* feat: update deps

* feat: update dep

* feat: update dep

* feat: update
2023-11-14 11:22:34 -08:00
Matthew Soulanille 8fc6fe94b9
Update vis, automl, inference, and react-native deps to tfjs 4.3.0 (#7502)
* Update vis, automl, and rn to tfjs 4.3.0

* Update tfjs-inference tfjs deps to 4.3.0
2023-03-21 09:36:38 -07:00
Matthew Soulanille 5dc1fe18d4
React native update tfjs to 4.2.0 (#7451)
* Add missing 'override' statements

* Update tfjs deps to 4.2.0

Add missing definitions for setTimeoutCustom and isTypedArray to the react
native platform

---------

Co-authored-by: Ping Yu <4018+pyu10055@users.noreply.github.com>
2023-03-07 11:07:07 -08:00
Matthew Soulanille 8571f496f1
Upgrade tfjs repo to 4.0.0 (#6927)
This major release upgrades TypeScript from 3.5.3 to 4.8.4 (https://github.com/tensorflow/tfjs/pull/6346). It is intended to be as non-breaking as possible, but it technically has breaking changes for users of `typescript<4.4`. All other users should be unaffected.

When compiling projects that depend on TFJS with `typescript<4.4`, the following error will appear.
```
node_modules/@webgpu/types/dist/index.d.ts:587:16 - error TS2304: Cannot find name 'PredefinedColorSpace'.

587   colorSpace?: PredefinedColorSpace;
                   ~~~~~~~~~~~~~~~~~~~~
...
```
This can be fixed by upgrading TypeScript to 4.4.2 or greater, or by adding the file `predefined_color_space.d.ts` (name and path can be changed) with the following contents to your project to define the missing type. If this file is added, it will need to be removed when TypeScript is upgraded past 4.3.
```typescript
type PredefinedColorSpace = "display-p3" | "srgb";
```

`typescript<3.7` has the following additional error.
```
node_modules/@tensorflow/tfjs-core/dist/engine.d.ts:127:9 - error TS1086: An accessor cannot be declared in an ambient context.

127     get backend(): KernelBackend;
            ~~~~~~~
...
```

Enabling [`skipLibCheck`](https://www.typescriptlang.org/tsconfig#skipLibCheck) suppresses this error, and upgrading to at least TypeScript 3.6.2 fixes it (although the above fix for `PredefinedColorSpace` will also need to be applied).
2022-10-12 14:21:32 -07:00
Ping Yu 7e3c36adec
[secu] update package.json files to resolve security alerts (#6448)
Clean up the package.json files for directories migrated to bazel.
2022-05-25 13:41:56 -07:00
Ping Yu 33c62a005c
Security fixes (#6268)
* yarn.lock updates for security warning

* fix minimist security issue
2022-03-29 12:34:26 -07:00
rancyr 694c6e2b3c
Update package.json to include the repository (#5770)
Add repository metadata to the package.json files for the following packages:
* @tensorflow/tfjs-react-native
* @tensorflow/tfjs-layers
* @tensorflow/tfjs-data
* @tensorflow/tfjs-backend-wasm

Co-authored-by: Matthew Soulanille <msoulanille@google.com>
2021-11-23 10:42:09 -08:00
Matthew Soulanille 6d80ba7d28
Update react-native monorepo dependencies to 3.7.0 (#5217)
Update react-native monorepo dependencies to 3.70, increase test timeout to 10 minutes, and disable Otsu image threshold tests (#5245).
2021-06-23 07:46:47 -07:00
Gregor Mittag d2116e2b91
Replace deprecated package '@react-native-community/async-storage' (#5228)
Move to first version of '@react-native-async-storage/async-storage'
to introduce minimal changes.
2021-06-16 14:56:22 -07:00
Ping Yu c238c49f70
fix sec vulnerabilities for all packages (#4869)
SECURITY
* fix sec vul for all packages

* fix rn error

* update pkg version

* update deps for automl

* fix lint

* fix node error

* fix karma stuck error for wasm
2021-03-30 15:53:14 -07:00
Matthew Soulanille 385df59956
Bump jpeg-js (#4718)
* Bunp jpeg-js to 0.4.3

* Fix jpeg-js use
2021-02-22 13:53:28 -08:00
Matthew Soulanille 6f8effccfb
Upgrade react native to 3.1.0 (#4610)
* Add ignore require fields for browser

* Update tfjs-react-native to 3.0.0

* Copy tfjs union in the react native demo

* Upgrade react-native to use tfjs 3.1.0

* Update react native peer dependencies
2021-02-19 07:52:17 -08:00
Yannick Assogba 17f5763f6b
Update tfjs version for tfjs-react-native
Updates the version tfjs-react-native is built against. tfjs 2.1.0 introduced a breaking change in a webgl_util function. We also will narrow the suggested peerDependency version to make it easier for users to know which version of tfjs has been tested against tfjs-react-native.

BUG
2020-10-08 18:19:03 -04:00
Yannick Assogba 5e7641a346
tfjs-react-native update test app deps (#3367)
INTERNAL
2020-06-01 11:21:17 -04:00
Yannick Assogba 3c38b5fd2d
Update tfjs-react-native to depend on tfjs 2.x
BREAKING
2020-05-07 10:52:55 -04:00
Yannick Assogba 5c4f1f8ab8
Add exported symbols back to webgl backend
Update the release script and prep for tfjs-react-native update to next RC
Update the webgl rollup config to make cpu backend an external

INTERNAL
2020-05-04 18:54:11 -04:00
Yannick Assogba 37b4426bb1
Update tfjs-react-native to 0.2.3. (#2748)
INTERNAL
2020-02-12 12:46:55 -05:00
Yannick Assogba 8f7fc32a13
Update tfjs-react-native to 0.2.2.
INTERNAL
2020-02-11 17:59:19 -05:00
Yannick Assogba 62ba1f867e
[tfjs-react-native] Use dynamic import of react-native-fs
BUG
* Use dynamic import of react-native-fs for expo managed app compatibility
2020-02-11 11:22:20 -05:00
Yannick Assogba 74591b8991
[tfjs-react-native] include tests on npm. Bump version to 0.2.1
INTERNAL
2020-01-23 11:13:32 -05:00
Yannick Assogba 8c83352385
tfjs-react-native fix version (add patch indicator)
INTERNAL
2020-01-23 10:26:39 -05:00
Yannick Assogba 0555f5726c
Update tfjs-react-native to 0.2
INTERNAL
* Update tfjs-react-native to 0.2.
2020-01-23 10:11:50 -05:00
Yannick Assogba 2b30aaa136
tfjs-react-native] add helper component for camera with tensor stream
FEATURE
2020-01-17 11:43:10 -05:00
Yannick Assogba 695f4aa6f8
[tfjs-react-native] Add functions for streaming camera data into tensors.
Adds functions for converting camera data to tensors for realtime use in model predictions.

Primary goal of this change is to enable real time use of camera data with models like posenet/bodypix etc.
2020-01-09 18:09:18 -05:00
Yannick Assogba e659ec0dd0
[tfjs-react-native] Add build entry for core tests in RN (#2461)
INTERNAL
* add build entry for core tsts in rn
* add update-apk script
* update development.md
2019-12-02 17:09:01 -05:00
Yannick Assogba 928fdc0204
[tfjs-react-native] Fix bundleResourceIO in release builds (#2345)
Updates how files are resolved by the bundle resource loader in prod builds. Addresses #2177

INTERNAL
BUG
2019-11-13 13:52:01 +00:00
Kevin VanGelder 1dd1d9e575 [tfjs-react-native] add decodeJpeg function
This adds decodeJpeg as an exported function from tfjs-react-native. 
It currently only supports 3 channel (RGB) images.

FEATURE
2019-11-05 11:28:49 -05:00
Yannick Assogba 5e27e53b7d
[tfjs-core/tfjs-react-native] run core unit tests in react-native
Run core's unit tests in CI on physical devices with the react native platform.

INTERNAL
2019-10-27 11:44:19 -04:00
Nikhil Thorat 74b93f074c
Convert all usages of ENV in all packages to env(). (#2251)
DEV

ENV is going to be removed in TensorFlow.js 2.0 because it breaks es2015 module semantics (you shouldn't export a mutable object).
2019-10-22 13:15:37 -04:00
Yannick Assogba bf7cf473cc
[tfjs-react-native] Remove rn 0.60 constraint
INTERNAL
DOC
2019-09-23 11:41:30 -04:00
Yannick Assogba c70a38cf29
[tfjs-react-native] RN alpha release (#1944)
FEATURE
2019-08-30 11:00:13 -04:00
Daniel Smilkov b42d12215e
[global] Switch half the projects to Typescript 3.5.3 and add a… (#1886)
DEV

Switch half the projects to Typescript 3.5.3 and add a lint rule `no-unnecessary-type-assertion` to align with the style guide at Google.

Notes:
- I'm only doing half the projects to make the PR smaller, and also avoid triggering a CI for all possible projects.
- Changing global `tslint.json` doesn't affect `tfjs-layers`, `tfjs-converter`, `tfjs-data` and `tfjs-node` yet, because they don't extend from the global `tslint.json`.
- An upcoming PR will upgrade the above-mentioned projects as well.
2019-08-22 14:35:46 -04:00
Yannick Assogba a4d3b24e28
[tfjs-react-native] add rn integration app (#1840)
INTERNAL

Adds a react native app that can be used for integration testing.
2019-08-15 14:36:08 -07:00
Yannick Assogba 8a6d4d5947 Add react native unit tests to ci (#1870)
cla: yes
Add react native unit tests to CI
2019-08-07 15:37:17 -04:00
Yannick Assogba 95e44a599f
add experimental webgl support for RN platform (#1844)
* fix tests add webgl backend prototype

* webgl path for ios

* save

* avoid shadowing global functions in clip

* upgrade tfjs version

* remove unused constant in shader compiler

* Merge branch 'master' into rn-webgl

* code review fixes

improve float texture download detection to include half float textures.

* save

* save

* remove warning as it makes tests noisy

consider refactoring this in another PR.

* Merge branch 'master' into rn-webgl

* revert settings update

* add comment

* save

* fix fetching of binary files

* save

* save

* have tests spy on platform.fetch

* Merge branch 'master' into rn-webgl

* code review fixes

* save

* Merge branch 'master' into rn-webgl

* fix lint errors

* code review fixes
2019-07-29 13:57:13 -04:00
Yannick Assogba bbc2ea4230
Security fix for cloud func mailer and react native (#1847)
SECURITY
2019-07-17 11:43:18 -04:00
Daniel Smilkov c01c8669e6 Fix security vulnerabilities (#1846) 2019-07-16 21:05:09 -04:00
Yannick Assogba 2aaa700339
add react native platform prototype (#1789)
INTERNAL

This adds an initial prototype of a platform for react native support. Initially it supports CPU backend execution and provides two IOHandlers for use with react-native. 

It also changes adds headers to (http) weight requests in core so that we can better distinguish the desired return type.
2019-07-08 17:15:59 -04:00