uql-codemod 0.45.0 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/transform.js CHANGED
@@ -793,9 +793,6 @@ function admitNull(options, node, ctx) {
793
793
  * so the declaration is found there rather than under a decorator.
794
794
  */
795
795
  function admitNullOnDefined(field, owner, ctx) {
796
- if (!ts.isPropertyAssignment(field)) {
797
- return;
798
- }
799
796
  const key = propertyKey(field.name);
800
797
  const declaration = key
801
798
  ? instanceTypeOf(owner.entity, ctx.checker)
@@ -887,7 +884,7 @@ function renameExports(source, dead, ctx) {
887
884
  function renamedTo(element, entry) {
888
885
  const name = importedName(element);
889
886
  const rename = RENAMED_EXPORTS.get(name);
890
- return rename?.to === name && (rename.from ?? entry) === entry ? undefined : rename;
887
+ return rename?.to === name && rename.from === entry ? undefined : rename;
891
888
  }
892
889
  /** Every identifier in the file bound to the same symbol as `name`, besides `name` itself. */
893
890
  function usesOf(source, name, checker) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "uql-codemod",
3
3
  "description": "Upgrade uql-orm across versions that introduce breaking changes",
4
4
  "license": "MIT",
5
- "version": "0.45.0",
5
+ "version": "0.46.0",
6
6
  "type": "module",
7
7
  "engines": {
8
8
  "node": ">=24"