@medusajs/region 2.11.3-snapshot-20251103115905 → 2.12.0-preview-20251103180145

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.
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/loaders/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAGd,MAAM,2BAA2B,CAAA;yBAOZ,eAAe,aAAa,KAAG,OAAO,CAAC,IAAI,CAAC;AAAlE,wBAwBC"}
1
+ {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/loaders/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAGd,MAAM,2BAA2B,CAAA;wCAOG,aAAa,KAAG,OAAO,CAAC,IAAI,CAAC;AAAlE,wBAwBC"}
@@ -9,7 +9,7 @@ declare const _default: import("@medusajs/framework/utils").DmlEntity<import("@m
9
9
  name: import("@medusajs/framework/utils").TextProperty;
10
10
  currency_code: import("@medusajs/framework/utils").TextProperty;
11
11
  automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
12
- countries: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
12
+ countries: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<any>, {
13
13
  readonly name: "Country";
14
14
  readonly tableName: "region_country";
15
15
  }>>;
@@ -19,7 +19,7 @@ declare const _default: import("@medusajs/framework/utils").DmlEntity<import("@m
19
19
  name: import("@medusajs/framework/utils").TextProperty;
20
20
  currency_code: import("@medusajs/framework/utils").TextProperty;
21
21
  automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
22
- countries: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
22
+ countries: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<any>, {
23
23
  readonly name: "Country";
24
24
  readonly tableName: "region_country";
25
25
  }>>;
@@ -9,7 +9,7 @@ declare const _default: import("@medusajs/framework/utils").DmlEntity<import("@m
9
9
  num_code: import("@medusajs/framework/utils").TextProperty;
10
10
  name: import("@medusajs/framework/utils").TextProperty;
11
11
  display_name: import("@medusajs/framework/utils").TextProperty;
12
- region: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "region">, import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "region">, undefined>, true>;
12
+ region: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<any>, "region">, import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<any>, "region">, undefined>, true>;
13
13
  metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
14
14
  }>, {
15
15
  readonly name: "Country";
@@ -1 +1 @@
1
- {"root":["../src/index.ts","../src/loaders/defaults.ts","../src/loaders/index.ts","../src/migrations/Migration20240205173216.ts","../src/migrations/Migration20240624200006.ts","../src/migrations/Migration20250120110744.ts","../src/models/country.ts","../src/models/index.ts","../src/models/region.ts","../src/services/index.ts","../src/services/region-module.ts","../src/types/index.ts"],"version":"5.9.3"}
1
+ {"root":["../src/index.ts","../src/loaders/defaults.ts","../src/loaders/index.ts","../src/migrations/Migration20240205173216.ts","../src/migrations/Migration20240624200006.ts","../src/migrations/Migration20250120110744.ts","../src/models/country.ts","../src/models/index.ts","../src/models/region.ts","../src/services/index.ts","../src/services/region-module.ts","../src/types/index.ts"],"version":"5.6.2"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/region",
3
- "version": "2.11.3-snapshot-20251103115905",
3
+ "version": "2.12.0-preview-20251103180145",
4
4
  "description": "Medusa Region module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,22 +24,28 @@
24
24
  "author": "Medusa",
25
25
  "license": "MIT",
26
26
  "scripts": {
27
- "watch": "yarn run -T tsc --build --watch",
28
- "watch:test": "yarn run -T tsc --build tsconfig.spec.json --watch",
29
- "resolve:aliases": "yarn run -T tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && yarn run -T tsc-alias -p tsconfig.resolved.json && yarn run -T rimraf tsconfig.resolved.json",
30
- "build": "yarn run -T rimraf dist && yarn run -T tsc --build && npm run resolve:aliases",
31
- "test": "../../../node_modules/.bin/jest --passWithNoTests --bail --forceExit -- src",
32
- "test:integration": "../../../node_modules/.bin/jest --forceExit -- integration-tests/**/__tests__/**/*.ts",
27
+ "watch": "tsc --build --watch",
28
+ "watch:test": "tsc --build tsconfig.spec.json --watch",
29
+ "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json",
30
+ "build": "rimraf dist && tsc --build && npm run resolve:aliases",
31
+ "test": "jest --passWithNoTests --bail --forceExit -- src",
32
+ "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts",
33
33
  "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts MIKRO_ORM_ALLOW_GLOBAL_CLI=true medusa-mikro-orm migration:create --initial",
34
34
  "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts MIKRO_ORM_ALLOW_GLOBAL_CLI=true medusa-mikro-orm migration:create",
35
35
  "migration:up": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts MIKRO_ORM_ALLOW_GLOBAL_CLI=true medusa-mikro-orm migration:up",
36
36
  "orm:cache:clear": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts MIKRO_ORM_ALLOW_GLOBAL_CLI=true medusa-mikro-orm cache:clear"
37
37
  },
38
38
  "devDependencies": {
39
- "@medusajs/framework": "2.11.3-snapshot-20251103115905",
40
- "@medusajs/test-utils": "2.11.3-snapshot-20251103115905"
39
+ "@medusajs/framework": "2.12.0-preview-20251103180145",
40
+ "@medusajs/test-utils": "2.12.0-preview-20251103180145",
41
+ "@swc/core": "^1.7.28",
42
+ "@swc/jest": "^0.2.36",
43
+ "jest": "^29.7.0",
44
+ "rimraf": "^5.0.1",
45
+ "tsc-alias": "^1.8.7",
46
+ "typescript": "^5.6.2"
41
47
  },
42
48
  "peerDependencies": {
43
- "@medusajs/framework": "2.11.3-snapshot-20251103115905"
49
+ "@medusajs/framework": "2.12.0-preview-20251103180145"
44
50
  }
45
51
  }