aws-amplify / amplify-codegen

Amplify Codegen is a JavaScript toolkit library for frontend and mobile developers building Amplify applications.
Apache License 2.0
59 stars 57 forks source link

chore: merge main into gen2 release #812

Closed AaronZyLee closed 2 months ago

AaronZyLee commented 2 months ago

Description of changes

This is to fix the issue of the previous tag release version not including the AJV removal commit, which is blocking the data manager testing. The long term solution commit from the main branch is to be merged for the feature branch.

One thing to note there is one snapshot change for hasOne reference codegen, which adds targetNames back as a empty list. This is because the validation fails on previous codegen as targetNames is defined as a required field in hasOne association. Changing it from required to optional is a breaking change. For backward compatibility, I assign the empty list for temporary workaround.

Codegen Paramaters Changed or Added

Issue #, if available

Description of how you validated changes

Checklist

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