@jscad/core 3.0.2-alpha.0 → 3.0.3-alpha.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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.0.3-alpha.0](https://github.com/jscad/OpenJSCAD/compare/@jscad/core@3.0.2-alpha.0...@jscad/core@3.0.3-alpha.0) (2026-01-18)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **cli:** corrected the loading of modules on Windows ([8cf518a](https://github.com/jscad/OpenJSCAD/commit/8cf518a003c00c0eef44268dd5ce684d7f8457d3))
11
+
6
12
  ## [3.0.2-alpha.0](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/core@3.0.1-alpha.0...@jscad/core@3.0.2-alpha.0) (2025-09-06)
7
13
 
8
14
  **Note:** Version bump only for package @jscad/core
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jscad/core",
3
- "version": "3.0.2-alpha.0",
3
+ "version": "3.0.3-alpha.0",
4
4
  "description": "Core functionality for JSCAD Applications",
5
5
  "homepage": "https://openjscad.xyz/",
6
6
  "repository": "https://github.com/jscad/OpenJSCAD.org",
@@ -37,9 +37,9 @@
37
37
  "license": "MIT",
38
38
  "dependencies": {
39
39
  "@jscad/array-utils": "3.0.1-alpha.0",
40
- "@jscad/io": "3.0.2-alpha.0",
41
- "@jscad/io-utils": "3.0.2-alpha.0",
42
- "@jscad/modeling": "3.0.2-alpha.0",
40
+ "@jscad/io": "3.0.3-alpha.0",
41
+ "@jscad/io-utils": "3.0.3-alpha.0",
42
+ "@jscad/modeling": "3.0.3-alpha.0",
43
43
  "json5": "2.2.3",
44
44
  "strip-bom": "4.0.0"
45
45
  },
@@ -52,5 +52,5 @@
52
52
  "url": "https://opencollective.com/openjscad",
53
53
  "logo": "https://opencollective.com/openjscad/logo.txt"
54
54
  },
55
- "gitHead": "ac80d1a7cb0a8efb21aff9193d4a8bccb6e31f1c"
55
+ "gitHead": "b0a83db054ec02ccddd9e19e51f86bf30f72a69e"
56
56
  }
@@ -1,4 +1,5 @@
1
1
  import path from 'path'
2
+ import url from 'url'
2
3
  import { createRequire } from 'module'
3
4
 
4
5
  import { toArray } from '@jscad/array-utils'
@@ -36,7 +37,8 @@ export const rebuildGeometryCli = async (data) => {
36
37
  // rootModule should contain exported main and getParameterDefinitions functions
37
38
  // const rootModule = requireDesignFromModule(mainPath, requireFn)
38
39
  // FIXME HACK for designs with import / export
39
- const rootModule = await import(mainPath)
40
+ const mainURL = String(url.pathToFileURL(mainPath))
41
+ const rootModule = await import(mainURL)
40
42
 
41
43
  // the design (module tree) has been loaded at this stage
42
44
  // now we can get our usefull data (definitions and values/defaults)