@tailor-platform/sdk-codemod 0.3.3 → 0.3.5

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,17 @@
1
1
  # @tailor-platform/sdk-codemod
2
2
 
3
+ ## 0.3.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1659](https://github.com/tailor-platform/sdk/pull/1659) [`6ba468f`](https://github.com/tailor-platform/sdk/commit/6ba468f4654a723ab4db01d3f3474ae96c25cc71) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency picomatch to v4.0.5
8
+
9
+ ## 0.3.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [#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
14
+
3
15
  ## 0.3.3
4
16
  ### Patch Changes
5
17
 
@@ -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.3",
3
+ "version": "0.3.5",
4
4
  "description": "Codemod runner for Tailor Platform SDK upgrades",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -20,9 +20,9 @@
20
20
  "chalk": "5.6.2",
21
21
  "diff": "9.0.0",
22
22
  "pathe": "2.0.3",
23
- "picomatch": "4.0.4",
23
+ "picomatch": "4.0.5",
24
24
  "pkg-types": "2.3.1",
25
- "politty": "0.10.1",
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.71.0",
33
+ "oxlint": "1.72.0",
34
34
  "tsdown": "0.22.3",
35
35
  "typescript": "6.0.3",
36
36
  "vitest": "4.1.9"