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

Gen2 storage #13262

Closed
wants to merge 28 commits into from
Closed

Gen2 storage #13262

wants to merge 28 commits into from

Conversation

jimblanc
Copy link
Contributor

Description of changes

Issue #, if available

Description of how you validated changes

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

ashika112 and others added 28 commits March 11, 2024 09:51
* updating type info
* update downloadData implementation
* fix output type
* path dynamic construction
* resolve merge conflit
* add unit tests for path
* update bundle size
* update deprecation warning
* update test
* misc changes
* address comments
* update deprecation warning per product
* include integ test path
* fix: extract isInputWithPath into separate file

* chore: add unit test

* Update packages/storage/__tests__/providers/s3/apis/utils/isInputWithPath.test.ts

Co-authored-by: ashika112 <155593080+ashika112@users.noreply.github.com>

* Update packages/storage/__tests__/providers/s3/apis/utils/isInputWithPath.test.ts

* address feedback

---------

Co-authored-by: Ashwin Kumar <ashwsrir@amazon.com>
Co-authored-by: ashika112 <155593080+ashika112@users.noreply.github.com>
* add prefix resolver deprecation warning
* add input validation on path parameter
Co-authored-by: Ashwin Kumar <ashwsrir@amazon.com>
* update validation
* add gen2 integ test
* feat(storage): add path supp to copy API

* address feedback

* address feedback

* update copy tests with leading /

* address feedback

* increase bundle size

---------

Co-authored-by: Ashwin Kumar <ashwsrir@amazon.com>
* update validation on path assertion

---------
Co-authored-by: Ashwin Kumar <ashwinkumar2468@gmail.com>
* feat: add gen2 path to getProperties API

* test: add unit tests for path parameter

* nit: remove unnecessary colon

* feat: add path to types

* test: first pass to add path coverage

* fix: adjust tests

* chore: remove links from tsdocs

* test: fix expected Key

* chore: prettier fix

* chore: increase getUrl bundle size

* chore: clean up tsdocs in getProperties

* chore: consolidate constants imports

* test: remove leading slash from path

* chore: address feedback

* chore: fix test and bundle size check

* chore: add back-tics to tsdocs

* chore: use test.each instead of forEach

* chore: fix deprecation and tsdocs

* chore: add contextSpec to copy tsdocs

* Update packages/storage/src/providers/s3/apis/copy.ts

Co-authored-by: ashika112 <155593080+ashika112@users.noreply.github.com>

* chore: another tsdoc fix

* chore: add tsdocs to server getUrl

* address feedback

* address feedback

* address feedback

* chore: add overload for deprecation messaging to getUrl

* address feedback

---------

Co-authored-by: ashika112 <155593080+ashika112@users.noreply.github.com>
chore: Update bundle size limit for `getUrl`.
* fix(storage): refactor copy API types

* fix(storage): refactor remove API types

* fix(storage): refactor getUrl API types

* fix(storage): refactor getProperties API types

* fix(storage): refactor list API types

* fix(storage): refactor download API types

* fix(storage): refactor upload API types

* verify all - update missed StorageOperationInputPrefix type

* revert StorageOperationInputWithType type

---------

Co-authored-by: Ashwin Kumar <ashwsrir@amazon.com>
* update overload type to include union

* update type name and cleanup

* update server api overload types

* update bundle size

* update type to use strict union input
Config: relax types to fix issues with TypeScript
* update getProperties return type

* update remove return type

* update downloadData return types

* update copy return types

* update upload return types

* update list return types

* clean up output types

* update test and list api
Copy link

⚠️ This PR includes manual changes to the "aws-amplify" package.json file, which can have library-wide implications.

Please ensure that this PR:

  • Does not modify "@aws-amplify/*" dependency versions, which may misalign core dependencies across the library.

A repository administrator is required to review & merge this change.

@jimblanc jimblanc closed this Apr 18, 2024
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.

6 participants