@tailor-platform/sdk-codemod 0.3.2 → 0.3.4

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @tailor-platform/sdk-codemod
2
2
 
3
+ ## 0.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1626](https://github.com/tailor-platform/sdk/pull/1626) [`06cc5f2`](https://github.com/tailor-platform/sdk/commit/06cc5f2960c5a09e9783d6b0923ed8c1b3d606a8) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency politty to v0.11.0
8
+
9
+ ## 0.3.3
10
+ ### Patch Changes
11
+
12
+
13
+
14
+ - [#1598](https://github.com/tailor-platform/sdk/pull/1598) [`a5a4c58`](https://github.com/tailor-platform/sdk/commit/a5a4c58cabc24af3088d85c7a0d975d5be459def) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency politty to v0.10.1
15
+
3
16
  ## 0.3.2
4
17
  ### Patch Changes
5
18
 
@@ -47,7 +47,8 @@ function transform(source) {
47
47
  if (arg.kind() === "array") {
48
48
  const children = arg.children().filter((c) => c.isNamed() && c.kind() !== "comment");
49
49
  if (children.length >= 1) {
50
- const mapping = PLUGIN_MAP[children[0].text().replace(/^["']|["']$/g, "")];
50
+ const packageName = children[0].text().replace(/^["']|["']$/g, "");
51
+ const mapping = PLUGIN_MAP[packageName];
51
52
  if (mapping) {
52
53
  migratedArgs++;
53
54
  importsToAdd.set(mapping.importPath, mapping.functionName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailor-platform/sdk-codemod",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "Codemod runner for Tailor Platform SDK upgrades",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -22,7 +22,7 @@
22
22
  "pathe": "2.0.3",
23
23
  "picomatch": "4.0.4",
24
24
  "pkg-types": "2.3.1",
25
- "politty": "0.9.2",
25
+ "politty": "0.11.0",
26
26
  "semver": "7.8.5",
27
27
  "zod": "4.4.3"
28
28
  },
@@ -30,7 +30,7 @@
30
30
  "@types/node": "24.13.2",
31
31
  "@types/picomatch": "4.0.3",
32
32
  "@types/semver": "7.7.1",
33
- "oxlint": "1.70.0",
33
+ "oxlint": "1.72.0",
34
34
  "tsdown": "0.22.3",
35
35
  "typescript": "6.0.3",
36
36
  "vitest": "4.1.9"