Skip to content

Latest commit

 

History

History
1050 lines (573 loc) · 35.6 KB

CHANGELOG.md

File metadata and controls

1050 lines (573 loc) · 35.6 KB

aws-sdk-js-codemod

1.4.0

Minor Changes

Patch Changes

1.3.6

Patch Changes

1.3.5

Patch Changes

1.3.4

Patch Changes

1.3.3

Patch Changes

1.3.2

Patch Changes

1.3.1

Patch Changes

1.3.0

Minor Changes

Patch Changes

1.2.8

Patch Changes

1.2.7

Patch Changes

1.2.6

Patch Changes

1.2.5

Patch Changes

1.2.4

Patch Changes

1.2.3

Patch Changes

1.2.2

Patch Changes

1.2.1

Patch Changes

1.2.0

Minor Changes

1.1.2

Patch Changes

1.1.1

Patch Changes

1.1.0

Minor Changes

Patch Changes

1.0.5

Patch Changes

1.0.4

Patch Changes

1.0.3

Patch Changes

1.0.2

Patch Changes

1.0.1

Patch Changes

1.0.0

Major Changes

  • Transform JS SDK APIs to v3 from static imports of aws-sdk v2
    • Default Import
    • Namespace Import
    • Variable Require
    • Import Equals
    • Named Import
    • Named Import with a local name
    • ObjectPattern Require
    • ObjectPattern Require with a local name
    • Variable Require Property
    • Variable Require Property with a local name
    • Default Import with deep path
    • Namespace Import with deep path
    • Variable Require with deep path
    • Import Equals with deep path
  • Transform JS SDK client creations in v2 to v3
    • When client name is same
    • When client name is different
    • When client is imported with a local name
  • Transform simple JS SDK config from v2 to v3 which is deprecated, not supported, replaced or renamed
  • Remove .promise() from JS SDK API calls
  • Transform JS SDK v2 TypeScript types to v3
  • Remove redundant JS SDK v2 TypeScript types
  • Transform waiter waitFor calls with waitUntil* functions
  • Transform JS SDK v2 credential providers and chains to v3
  • Transform JS SDK v2 token providers and chains to v3
  • Transform DynamoDB DocumentClient from v2 to v3
  • Transform S3 getSignedUrl APIs from v2 to v3
  • Transform S3 multi-part upload APIs from v2 to v3

0.28.2

Patch Changes

  • Transform clients published between 2023-09-14 and 2023-11-13 (9ff5799)

0.28.1

Patch Changes

  • Replace ClientConfiguration with ClientConfig (6e4caa0)

0.28.0

Minor Changes

  • Transform types imported from redundant Types (aa735f7)

0.27.4

Patch Changes

  • Check for raw string in extra.raw when searching for quotes (8b861cf)

0.27.3

Patch Changes

  • Remove trailing comma from ObjectProperty require (304ae20)

0.27.2

Patch Changes

  • Remove newlines from ObjectPattern requires (c18f8be)
  • Remove newlines from ObjectPattern requires with multiple keys (56a5979)
  • Remove extra newlines between v3 require declarations (255467b)

0.27.1

Patch Changes

  • Use formatting convention of trailing comma from input code (b4b12b3)

0.27.0

Minor Changes

  • Follow formatting conventions of input code (c2ee5d1)

Patch Changes

  • Use quotation style from the input code (06a1242)
  • Use formatting conventions of tabs or spaces from input code (0d9e469)

0.26.4

Patch Changes

  • Only format while which include AWS SDK for JavaScript (fb13fcc)

0.26.3

Patch Changes

  • Mark Config apiVersion as deprecated (fb18aa6)
  • Insert credentials at the first occurrence of a security credential key (4440265)

0.26.2

Patch Changes

  • Add a simpler concise example in README (68341cc)
  • Add disclaimer in README and process warning (e0176fb)

0.26.1

Patch Changes

  • Transform explicitly set keys in AWS.config (43b2991)

0.26.0

Minor Changes

  • Pass values from global config in service config (3df47f9)

0.25.5

Patch Changes

  • Transform types imported without clients (b017b59)

0.25.4

Patch Changes

  • Transform config credential keys (1a09462)

0.25.3

Patch Changes

  • Prefer import over require when both are present (f2185da)

0.25.2

Patch Changes

  • Check for StringLiteral type to handle requires in TypeScript code (c72eac2)

0.25.1

Patch Changes

  • Transform config inside client initialization (8d1d3bb)

0.25.0

Minor Changes

  • Basic transformation for AWS.Config constructor (734411c)

0.24.0

Minor Changes

  • Add transformation for TokenProviders and TokenProviderChain (4a0d7b4)

0.23.2

Patch Changes

  • Add transformation for AWS.CredentialProviderChain (08464c6)

0.23.1

Patch Changes

  • Add transformation for AWS.ProcessCredentials (34405ed)
  • Add transformation for AWS.SsoCredentials (cc5f412)

0.23.0

Minor Changes

  • Basic transformation of AWS Credentials (7abe8a2)

0.22.1

Patch Changes

  • Add imports after the first occurrence of aws-sdk (2fe3834)

0.22.0

Minor Changes

  • Add require declaration per client (d989203)

0.21.4

Patch Changes

  • Remove require declarator from declaration (6ebca1a)

0.21.3

Patch Changes

  • Use package name as suffix in import equals default declaration (2161b67)

0.21.2

Patch Changes

  • Remove type annotation transformation in redundant types (0296d75)
  • Remove type annotation for union of required types (bf44354)
  • Remove transformation for types with type annotation (5896f7a)

0.21.1

Patch Changes

  • Remove check for require global identifier (a01e797)
  • Add import equals declaration for named imports (91b67f0)

0.21.0

Minor Changes

  • Use named imports while transforming require/import (536132b)

0.20.0

Minor Changes

  • Use only default import while transforming import equals (73264e6)

Patch Changes

  • Store whether code uses require/import/importEquals in importType (7603bda)

0.19.0

Minor Changes

  • Use v3 client name when input code does not use local name (c1c8016)

0.18.3

Patch Changes

  • Transform AWS.util.copy (bdf04b8)

0.18.2

Patch Changes

  • Transform AWS.util.array functions (bcee631)

0.18.1

Patch Changes

  • Transform clients published between 2023-07-27 and 2023-09-13 (ca4c2af)

0.18.0

Minor Changes

  • Create input/output types mapping in CLIENT_REQ_RESP_TYPES_MAP (531767c)
  • Use CLIENT_REQ_RESP_TYPES_MAP for input/output transformation (8de1c52)

0.17.7

Patch Changes

  • Remove promise calls when parentPath is CallExpression (dbf3a3f)

0.17.6

Patch Changes

  • Recommend using latest version of aws-sdk-js-codemod (d31a5d4)

0.17.5

Patch Changes

  • Add type annotation for union of required types (725034e)
  • Retain type annotation when transforming redundant types (2fcf263)

0.17.4

Patch Changes

  • Store clientIdentifiersRecord at transformer level (1431238)
  • Support transformation for types with type annotation (5f1a930)

0.17.3

Patch Changes

  • Add namespace import instead of default import (432133e)
  • Check if parameters are passed during DocumentClient creation (56ac51a)

0.17.2

Patch Changes

  • Add comments for unsupported named deep import of DocumentClient (0ed75c4)

0.17.1

Patch Changes

  • Transform DynamoDB DocumentClient wrapNumbers option (d1cea6f)
  • Transform DynamoDB DocumentClient convertEmptyValues option (1a54680)

0.17.0

Minor Changes

  • Support transformation of DocumentClient input/output types (53a49aa)

Patch Changes

  • Create types map for DocumentClient (31f3ef4)

0.16.0

Minor Changes

  • Support transformation of S3 getSignedUrl (d194142)

0.15.2

Patch Changes

  • Preserve import comments when transforming code (f4d2497)
  • Retain only top level comments while transforming (83832c8)

0.15.1

Patch Changes

  • Transform clients published between 2022-12-22 and 2023-07-26 (1a437fe)

0.15.0

Minor Changes

  • Bump jscodeshift to 0.15.0 (183eee2)

0.14.1

Patch Changes

  • Use value from service param for creating DynamoDB DocumentClient (6b09a0d)

0.14.0

Minor Changes

  • Add initial support for DynamoDB DocumentClient transformation (15b1d6c)

0.13.5

Patch Changes

  • Add comments for unsupported S3 ManagedUpload with callback (26eb091)
  • Add check for s3 client name before transforming upload API (6e6c41f)
  • Do not apply babeljs to the transform file (c74fb09)

0.13.4

Patch Changes

  • Add transformation for s3 ManagedUploadOptions in an identifier (049b329)
  • Add transformation for s3 ManagedUploadOptions (4b17da0)

0.13.3

Patch Changes

  • Add comments for unsupported waiters with callback (adf104f)

0.13.2

Patch Changes

  • Support transformation of waiter API on a client class member (692b989)

0.13.1

Patch Changes

  • Compute variable name for import equals from v2ClientName (06a92c7)

0.13.0

Minor Changes

  • Add comment with warning when removing .promise() from untested cases (0447472)

Patch Changes

  • Support removal of promise() for ExpressionStatement (a024eeb)

0.12.1

Patch Changes

  • Make AwaitExpression/VariableDeclarator generic while removing .promise() API (13fd08a)

0.12.0

Minor Changes

  • Add initial transformation for s3.upload API (5aeb73e)

0.11.4

Patch Changes

  • Support removal of .promise() with parentPath ObjectProperty (ec4577c)

0.11.3

Patch Changes

  • Support transformation of waiter configuration (2d477e0)

0.11.2

Patch Changes

  • Sort v3 named require/imports (77f08e8)

0.11.1

Patch Changes

  • Use waiterState when searching for waitFor calls to replace (69f2ea7)

0.11.0

Minor Changes

  • Add initial support for waiter API transformation (a04403b)

0.10.7

Patch Changes

0.10.6

Patch Changes

  • Print code in removePromiseForCallExpression error message (e385d89)

0.10.5

Patch Changes

  • Add callExpression arguments in ArrowFunction/Return while remove promise() (bca11ad)

0.10.4

Patch Changes

  • Call JS API of jscodeshift instead of using spawn (d446899)

0.10.3

Patch Changes

  • Add instructions to clear npx cache to use latest version of aws-sdk-js-codemod (1c76e12)

0.10.2

Patch Changes

  • Support requires with MemberExpression property (8b09bb6)

0.10.1

Patch Changes

  • Enable transformation when a mixture of require and imports is present (39b1518)

0.10.0

Minor Changes

  • Default parser to babylon (49ec6f4)

0.9.3

Patch Changes

  • Filter client names received from new expressions and TS Types (a998205)

0.9.2

Patch Changes

  • Use filter API to delete identifiers from require object pattern (0f4ca88)

0.9.1

Patch Changes

  • Use filter API to shortlist import declarations to be deleted (e623543)

0.9.0

Minor Changes

  • Support type definitions which are not available in v3 (915dcfe)

Patch Changes

  • Remove reference to non-existent types from CLIENT_TYPES_MAP records (ac605d5)
  • Generate CLIENT_TYPES_MAP by processing client types from v2 (2f3a713)

0.8.5

Patch Changes

  • Remove client import equals if clients are not created (88f6998)

0.8.4

Patch Changes

  • Remove client require if clients are not created (e64574d)
  • Remove client import if clients are not created (135b8ab)

0.8.3

Patch Changes

  • Replace types for requires (6d29b35)

0.8.2

Patch Changes

  • Replace TypeScript types created with imports (6344814)

0.8.1

Patch Changes

  • Add support for ImportEqualsDeclaration (dc417b9)

0.8.0

Minor Changes

  • Use default import/require for types (25559fe)

0.7.6

Patch Changes

  • Support updating variable declaration with require CallExpression (3c5197d)

0.7.5

Patch Changes

  • Parse through named imports from global path instead of clients (35d0638)

0.7.4

Patch Changes

  • Deep import search only for available clients (9b3dfb1)

0.7.3

Patch Changes

  • Reduce number of calls to source API in getV2ClientNamesRecord (a1134d4)

0.7.2

Patch Changes

0.7.1

Patch Changes

  • Support named imports from "aws-sdk" (d236d4c)

0.7.0

Minor Changes

  • Use local names to minimize transformation (c77b0d9)

0.6.12

Patch Changes

  • Rename v2DefaultModuleName to v2GlobalName to align with v2ClientName (10be584)
  • Remove enforcement of v2GlobalName to string (aba497a)

0.6.11

Patch Changes

  • Add utility getV2ClientTSTypeRef (66568ab)
  • Add utility getV2ClientNamesFromDefault (9d2c537)
  • Add utility getV2ClientNewExpression (27a2f24)
  • Create new object instead of modifying existing expression (d3f130c)

0.6.10

Patch Changes

  • Replace named imports for Request/Response types (9e64aa4)

0.6.9

Patch Changes

  • Replace named imports for Input/Output types (222c00c)

0.6.8

Patch Changes

  • Update TypeScript Type Reference for Input/Output (c4a97b1)

0.6.7

Patch Changes

  • Check only for client constructors in named imports (9621c39)

0.6.6

Patch Changes

  • Remove .promise() from client API request stored in a variable. (c80233f)

0.6.5

Patch Changes

  • Refactor to move v2-to-v3 utils into folders (0c9cfd1)
  • Support transformation for clients published between 2022-03-02 and 2022-12-21 (653b11b)

0.6.4

Patch Changes

  • Remove .promise() calls from class member clients (43abf32)

0.6.3

Patch Changes

  • Automatically set parser to ts for TypeScript files (8ab815a)

0.6.2

Patch Changes

  • Remove dependency 'table' (4ab8452)

0.6.1

Patch Changes

  • Skip generation of type definitions (c27a225)

0.6.0

Minor Changes

  • Drop support for Node.js 12.x (ca4eb56)
  • Bump jscodeshift to v0.14.0 (53d305a)

0.5.2

Patch Changes

  • Use require for custom changelog script (9413715)
  • Enable @changesets/changelog-github (f8ab5e1)
  • Add GitHub commit links to CHANGELOG (f1ec4a9)
  • Add custom changelog script (c9ff137)

0.5.1

Patch Changes

  • Update GitHub user to awslabs (9b5791a)
  • Add Pull Request Template (fb0c577)
  • Add CONTRIBUTING.md (cfa2e97)
  • Add Code of Conduct (9a58d12)
  • Set Amazon Web Services as author (c0f7605)
  • Add link to LICENSE from README (f9d1827)
  • Add MIT-0 License (7c7d1c8)

0.5.0

Minor Changes

  • Process clients from TS Type Reference (334a834)

0.4.6

Patch Changes

  • Add tests for existing package import/require with services (af1ba19)
  • Rename v2 Modules from Client to Service (f67d3ea)
  • Remove promise() calls from clients created from service imports (5b77175)

0.4.5

Patch Changes

  • Replace with (249dee2)
  • Add test with no AWS SDK for JavaScript (v2) (812ab49)
  • Rename named import to identifier import (8ef2e6d)
  • Add test for existing identifier/package require (3d1b37c)

0.4.4

Patch Changes

  • Run yarn lint on all source files (4053841)
  • Enable eslint rule array-type with default 'array' (52fc856)
  • Enable eslint naming-convention rule with camelCase, UPPER_CASE and PascalCase (ea133bb)
  • Create utility getMergedArrayWithoutDuplicates (52947af)

0.4.3

Patch Changes

0.4.2

Patch Changes

  • Rename Import to Module wherever required (a72bd0c)
  • Add utils remove(Require|Import)IdentifierName (34c3fb7)
  • Add utility getV2ClientModulePath (4df95bd)
  • Split getV2ClientModuleNames into import/require components (d0d459a)
  • Add utils get(Require|Import)IdentifierName (38a16cc)
  • Split getV2DefaultModuleName into import/require components (dd83c82)
  • Store 'aws-sdk' in constant PACKAGE_NAME (5690340)

0.4.1

Patch Changes

  • Support transformation for client require (1008a5b)

0.4.0

Minor Changes

  • Support transformation for global require (65c166a)

0.3.1

Patch Changes

  • Handle v2 client imports in case of ImportNamespaceSpecifier (339e74a)
  • Replace jscodeshift-find-imports with source.find() call (f4d79c8)

0.3.0

Minor Changes

  • Support transformation of v2 client imports (d5d5e9d)

0.2.3

Patch Changes

  • Check for source 'aws-sdk' while removing default imports (24f87df)

0.2.2

Patch Changes

  • Remove .promise() from API calls in variable declarator (84c337a)

0.2.1

Patch Changes

  • Remove .promise() from API calls which use await (ed78aae)

0.2.0

Minor Changes

  • Remove .promise() from client API calls (a4dc900)

0.1.5

Patch Changes

  • Update existing v3 import if already present (c38b72a)

0.1.4

Patch Changes

  • Sort v3 client imports (62ba488)
  • Add test for multiple API callbacks (18ee5bb)

0.1.3

Patch Changes

  • Move test files next to source files (ca6077d)
  • Update unit tests to follow team jest standards (1112f3f)

0.1.2

Patch Changes

  • Removes unused v2 default import (fcd1e82)

0.1.1

Patch Changes

  • Update README with instructions to use aws-sdk-js-codemod (369d337)

0.1.0

Minor Changes

  • Send updated transform file if a custom transform is selected (a8be757)

Patch Changes

  • Copy code which performs basic transformation of AWS SDK for JavaScript client from v2 to v3 (e13f64c)
  • Adds a placeholder for transforms with information under help option (dbd8346)

0.0.5

Patch Changes

  • Use npm exec instead of ./node_modules/.bin (0baf388)

0.0.4

Patch Changes

  • Make aws-sdk-js-codemod in bin folder executable (978e21a)

0.0.3

Patch Changes

  • Remove simple-git-hooks on postinstall (3c20ee0)

0.0.2

Patch Changes

  • Copy configuration from trivikr/aws-sdk-js-v2-to-v3 (91ec885)
  • Add a basic wrapper over jscodeshift (baafe94)