You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(upgrade): token rename codemod corrupts .toString() and .toLocaleString() calls #910
The migrate-token-renames codemod in xds upgrade --apply --from 0.0.7 --to 0.0.8 incorrectly transforms .toString() and .toLocaleString() method calls into their native code string representations.
on any .tsx file containing .toString() or .toLocaleString() calls.
Root cause
Likely the token rename map has an overly broad string matcher that catches toString / toLocaleString as token names, and the replacement logic calls .toString() on a function reference instead of using the replacement string.
Impact
Silently corrupts source files. The 4 files hit in XDS Common were:
Activity
fix(cli): codemod output validation + CI verification + fix #910
fix(cli): codemod output validation + CI verification + fix #910
fix(cli): codemod output validation + CI verification + fix #910
fix(cli): codemod output validation + CI verification + fix #910 (#912)
fix(cli): codemod output validation + CI verification + fix #910 (#912)
fix(cli): codemod output validation + CI verification + fix #910 (#912)
fix(cli): codemod output validation + CI verification + fix #910 (#912)