Repository navigation
aws-sdk-v3 upgrade and 1.0.0 release - #337
Conversation
c7af09d to
bedbfda
Compare
|
to maximize v3 modularity, i'm thinking we should remove the various index files and move to using module-based imports. for example: instead of: because the index files force the need to include all the dependencies. we could leave the index files for backward compatibility but deprecate them and stop adding anything to them thoughts? |
Makes sense to me, I can make those changes. I think what I'll do in the vein of compatibility is:
Then moving forward we can stop adding anything new to them. |
You can take a look here for an example of what usage looks like with modular exports. I updated the whole |
c00cc92 to
319acd9
Compare
|
i remove the fetch connector/utils from the index files since they r rarely used |
|
|
did not mean to close |
I had given that some thought and wanted to pick your brain. I'm generally not a big fan of general 'utils' unless they truly contain utilities like uuid generation, defaults, helpful small utilities to reduce code duplication. The utils directory as it is now in my mind actually contains 3 things, sinks, through's, and actual utilities. I'm not sold on the name 'throughs', maybe 'stream-utils'? My idea is basically sinks, utilities that operate on the stream (eg. encryption, batching, faults), and basic utilities (eg. retry, opt, print) My initial thought would be to split the files apart into the following dirs:
Thoughts? |
|
as a first cut to reorganize i created sinks and queries folders and moved utils accordingly |
|
i also removed everything that was deprecated |
| }, {}), | ||
| })) | ||
| const req = JSON.stringify(uow[batchGetRequestField]); | ||
| const cached = memoryCache.get(req); |
There was a problem hiding this comment.
lots of room to improve on batch get caching
There was a problem hiding this comment.
Definitely. I started here because it mimics how queryAll caching is being done atm. Have some thoughts here, we can discuss. Or if you'd prefer, we can remove this for now and add it in a subsequent release since there is a lot we could potentially do here.
There was a problem hiding this comment.
this is a good safe starting position so i'll leave it
Changes tested by publishing v1.0.0 to locally running Verdaccio and using these test pipelines to verify connectors.
uuid util added to enable mocking since the newer version of the uuid library exports modules in a way that can't be mocked with Sinon.
log util added since the logger interface passable to aws client constructors became slightly more complex and I didn't want to duplicate that logic in every connector.