@tailor-platform/sdk-codemod 0.3.0-next.0 → 0.3.0-next.2
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/CHANGELOG.md +86 -0
- package/dist/codemods/v2/apply-to-deploy/scripts/transform.js +22 -4
- package/dist/codemods/v2/auth-invoker-unwrap/scripts/transform.js +99 -11
- package/dist/codemods/v2/cli-rename/scripts/transform.js +373 -14
- package/dist/codemods/v2/execute-script-arg/scripts/transform.js +60 -0
- package/dist/codemods/v2/principal-unify/scripts/transform.js +1131 -43
- package/dist/codemods/v2/tailordb-namespace/scripts/transform.js +5 -4
- package/dist/index.js +521 -37
- package/package.json +5 -5
|
@@ -6,10 +6,11 @@ const MEMBER_GROUP = [
|
|
|
6
6
|
].join("|");
|
|
7
7
|
const PATTERN = new RegExp(String.raw`\bTailordb\.(${MEMBER_GROUP})\b`, "g");
|
|
8
8
|
/**
|
|
9
|
-
* Rewrite references to the
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* Rewrite references to the capital-cased `Tailordb` ambient namespace to the
|
|
10
|
+
* lowercase `tailordb` namespace. The capital-cased namespace was inherited
|
|
11
|
+
* from `@tailor-platform/function-types`; the SDK kept it as a `@deprecated`
|
|
12
|
+
* alias in v1 and removed it in v2, leaving only the lowercase `tailordb.*`
|
|
13
|
+
* namespace exposed by `@tailor-platform/sdk/runtime/globals`.
|
|
13
14
|
*
|
|
14
15
|
* Only the known type-only members (`QueryResult`, `CommandType`, `Client`)
|
|
15
16
|
* are rewritten so that unrelated user-defined symbols sharing the
|