| #
8a424beb |
| 11-Aug-2023 |
James Ide <[email protected]> |
[lint] Upgrade to Prettier v3, typescript-eslint to v6 (#23544)
Why
---
Prettier 3 is out. Add support for it with this linter config.
**Note for reviewer:** the first commit is the one with th
[lint] Upgrade to Prettier v3, typescript-eslint to v6 (#23544)
Why
---
Prettier 3 is out. Add support for it with this linter config.
**Note for reviewer:** the first commit is the one with the actual
changes. The rest of this PR are changes to get the linter passing
(mostly autofix).
How
---
Update eslint-config-prettier and eslint-plugin-prettier. To address
deprecation warnings, also update typescript-eslint/parser and
typescript-eslint/eslint-plugin.
Because of an update to typescript-eslint/parser, we need to suppress
deprecation warnings (documented in a comment).
Regenerated test snapshots. Due to the upgraded dependencies, typecasts
and optional chaining are now auto-fixable by lint. This converts
warnings into autofixes.
Test Plan
---
`yarn test` in the linter config. Run `expotools check --all --fix-lint
--no-build --no-test --no-uniformity-check` to try this config on the
whole repo.
---------
Co-authored-by: Expo Bot <[email protected]>
show more ...
|
| #
89c23745 |
| 26-Apr-2023 |
Gabriel Donadel Dall'Agnol <[email protected]> |
[file-system] Remove deprecated UploadProgressData totalByteSent field (#22277)
# Why
Closes ENG-7226
Follow up PR updating docs -> #22278
# How
This PR removes the deprecated `totalByte
[file-system] Remove deprecated UploadProgressData totalByteSent field (#22277)
# Why
Closes ENG-7226
Follow up PR updating docs -> #22278
# How
This PR removes the deprecated `totalByteSent` field from
UploadProgressData
# Test Plan
Run NCL
# Checklist
<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->
- [ ] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
show more ...
|
| #
4ee48f97 |
| 12-Jan-2023 |
Gabriel Donadel Dall'Agnol <[email protected]> |
[file-system] Fix UploadProgressData field name typo (#20804)
# Why
`UploadProgressData` `totalByteSent` key should be `totalBytesSent` to
be consistent with other FIleSystem properties like
`t
[file-system] Fix UploadProgressData field name typo (#20804)
# Why
`UploadProgressData` `totalByteSent` key should be `totalBytesSent` to
be consistent with other FIleSystem properties like
`totalBytesExpectedToSend`, `totalBytesWritten` and
`totalBytesExpectedToWrite`.
Closes ENG-6559
Follow up PR updating docs -> https://github.com/expo/expo/pull/20810
# How
This updates all native references of `totalByteSent` to
`totalBytesSent` and adds a getter `totalByteSent` property to
`UploadProgressData` events so users get a deprecation warning when
accessing `totalByteSent`
# Test Plan
Added a new `Download & Upload file` button to NCL so we can properly
test this
https://user-images.githubusercontent.com/11707729/212067976-a4bdd509-8937-4f27-9516-cee35ed94dca.mov
# Checklist
<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->
- [ ] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `expo prebuild` & EAS Build (eg:
updated a module plugin).
show more ...
|
| #
6b7802ba |
| 22-Nov-2022 |
Bartosz Kaszubowski <[email protected]> |
[file-system][docs] migrate package to autogenerated docs, APISection tweaks (#20103)
|
| #
52eeb172 |
| 18-Aug-2021 |
Łukasz Kosmaty <[email protected]> |
[file-system][js] Make network task cancelable (#13318)
# Why
Added ability to cancel network tasks and a progress listener for file upload.
# How
- Created a `NetworkTask` class that is a
[file-system][js] Make network task cancelable (#13318)
# Why
Added ability to cancel network tasks and a progress listener for file upload.
# How
- Created a `NetworkTask` class that is a basic class for download and upload tasks.
- Added an upload progress listener.
# TODO
- [x] iOS - https://github.com/expo/expo/pull/13320
- [x] Android - https://github.com/expo/expo/pull/13319
show more ...
|
| #
400de723 |
| 06-Mar-2021 |
Łukasz Kosmaty <[email protected]> |
[expo-file-system] Fix compatibility with Android R (#12032)
# Why
Followup of https://github.com/expo/expo/pull/11647.
# How
- Handled SAF files in the `expo-file-system`.
- Added a way
[expo-file-system] Fix compatibility with Android R (#12032)
# Why
Followup of https://github.com/expo/expo/pull/11647.
# How
- Handled SAF files in the `expo-file-system`.
- Added a way to ask for external storage write permissions.
> **Note**: Those changes were needed to ensure a smooth transition to a scoped storage on Android.
# Test Plan
- NCL ✅
show more ...
|
| #
65428d51 |
| 01-Sep-2020 |
Bartłomiej Klocek <[email protected]> |
[packages] Add @deprecated annotations to deprecated APIs (#9959)
# Why
_This follows the TS 4.0 update PR: #9960_
Typescript 4.0 comes with support for `@deprecated` annotations, which gives
[packages] Add @deprecated annotations to deprecated APIs (#9959)
# Why
_This follows the TS 4.0 update PR: #9960_
Typescript 4.0 comes with support for `@deprecated` annotations, which gives nice VS Code (and probably other IDE) messages informing users about API deprecation. It also marks deprecated methods/properties with ~~Strikethrough~~.
See [this](https://devblogs.microsoft.com/typescript/announcing-typescript-4-0/#deprecated-support) and https://github.com/microsoft/TypeScript/pull/38523
# How
- Added appropriate annotations to every possible deprecated Expo API that I found.
- Updated existing comments to play nice with VS Code messages
Also, added note about dead code in Notifications, which is related to #9563 (I forgot to add it then)
> Not sure what to do with changelogs ❓
# Test Plan
Tested messages in VS Code with _TS 4.0.2_ enabled.
show more ...
|
| #
37630a92 |
| 29-Apr-2020 |
Łukasz Kosmaty <[email protected]> |
[file system][ios] Add multipart upload (#7403)
* [expo-file-system][ios] Add multipart upload
* [expo-file-system] Apply requested changes
|
| #
da65a760 |
| 27-Apr-2020 |
Łukasz Kosmaty <[email protected]> |
[file system][ios] Add download and upload in background (#7380)
* [file-system] make downloadAsync work in backgroud
* [file-system] Upload method
* [file-system] Add body to response
* [f
[file system][ios] Add download and upload in background (#7380)
* [file-system] make downloadAsync work in backgroud
* [file-system] Upload method
* [file-system] Add body to response
* [file-system] Refactor
* [file system] Handle resumable downloads
* [file system] Add background/foreground option
* [file system] Make background session default
* [file system] Apply requested changes
* [file system] Fix typo
* [file system] Apply requested changes
* [file system] Add changelog
* [expo-file-system] Apply requested changes
* [expo-file-system] Fix session lifetime
* [expo-file-system] Refactor
* [expo-file-system] Fix headers
* [expo-file-system] Apply requested changes
* [expo-file-system] Fix lifetime of EXFileSystem
* [expo-file-system] Extract resumables manger
* [expo-file-system] Pass body safely
* [expo-file-system] Pod install
* [expo-file-system] Apply requested changes
* [expo-file-system] Apply requested changes
* [expo-file-system] Apply requested changes
* [expo-file-system] Pod install in bare-expo
* [expo-file-system] EXResumableManager -> EXResumablesManager
* [expo-file-system] Fix error codes
show more ...
|
| #
ae9a5f1a |
| 24-Jul-2019 |
Tongyu Zhu <[email protected]> |
[expo-device] Add expo-device module (#4682)
* Create the highly anticipated Device module
|
| #
e4897761 |
| 17-Jun-2019 |
Tongyu Zhu <[email protected]> |
[FileSystem]Add ContentUriFromFile() function to support external file access outside expo app on Android (#4526)
* add contentUri function to filesystem
* [WIP]
* add getContentUriAsync() int
[FileSystem]Add ContentUriFromFile() function to support external file access outside expo app on Android (#4526)
* add contentUri function to filesystem
* [WIP]
* add getContentUriAsync() into FileSystem module and add docs about it
* revert new line
* modify logic and add flags in RN
* add alternative promist rejection
* modify format, add logic and ios platform
show more ...
|
| #
7e929553 |
| 23-Feb-2019 |
Evan Bacon <[email protected]> |
Added types to the ExponentFileSystem platform module (#3560)
* Renamed FS -> ExponentFileSystem
* Fixed bug where constants were being redefined
* Added stricter types to the ExponentFileSystem n
Added types to the ExponentFileSystem platform module (#3560)
* Renamed FS -> ExponentFileSystem
* Fixed bug where constants were being redefined
* Added stricter types to the ExponentFileSystem native module
* Added an empty shim for ExponentFileSystem to be used in standalone and on web
show more ...
|
| #
77c88547 |
| 01-Feb-2019 |
Evan Bacon <[email protected]> |
Fixed CI SDK tests (#3372)
* Update expoModules.js
* Update expoModules.js
* Fixed tests
* Fixed scheme bug
* Update FileSystem-test.ts
|
| #
eed6b87b |
| 31-Jan-2019 |
Stanisław Chmiela <[email protected]> |
[expo-asset][expo-file-system] Minor fixes
|
| #
2307aace |
| 31-Jan-2019 |
Evan Bacon <[email protected]> |
[TypeScript] FileSystem migration (#3340)
* Added TS
* Updated testing
* Update FileSystem-test.ts
* Updated `encoding` type
* Updated FileSystem import for `Asset` tests
* Updated sy
[TypeScript] FileSystem migration (#3340)
* Added TS
* Updated testing
* Update FileSystem-test.ts
* Updated `encoding` type
* Updated FileSystem import for `Asset` tests
* Updated syntax
* Update FileSystem-test.ts
* Refined types
* Refined tests
* Update Expo.ts
show more ...
|