eolang 0.30.0 → 0.30.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/README.md CHANGED
@@ -18,7 +18,7 @@ First, you install [npm][npm-install] and [Java SE][java-se].
18
18
  Then, you install [eolang][npm] package:
19
19
 
20
20
  ```bash
21
- npm install -g eolang@0.29.0
21
+ npm install -g eolang@0.30.1
22
22
  ```
23
23
 
24
24
  Then, you write a simple [EO](https://www.eolang.org) program in `hello.eo` file
@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: Copyright (c) 2022-2025 Objectionary.com
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
- distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
4
+ distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.10/apache-maven-3.9.10-bin.zip
package/mvnw/pom.xml CHANGED
@@ -26,13 +26,13 @@
26
26
  <dependency>
27
27
  <groupId>org.junit.jupiter</groupId>
28
28
  <artifactId>junit-jupiter-api</artifactId>
29
- <version>5.13.0</version>
29
+ <version>5.13.1</version>
30
30
  <scope>compile</scope>
31
31
  </dependency>
32
32
  <dependency>
33
33
  <groupId>org.junit.jupiter</groupId>
34
34
  <artifactId>junit-jupiter-engine</artifactId>
35
- <version>5.13.0</version>
35
+ <version>5.13.1</version>
36
36
  <scope>compile</scope>
37
37
  </dependency>
38
38
  </dependencies>
package/package.json CHANGED
@@ -6,27 +6,27 @@
6
6
  "dependencies": {
7
7
  "@langchain/core": "^0.3.55",
8
8
  "@langchain/openai": "^0.5.10",
9
- "colors": "1.4.0",
10
- "commander": "12.1.0",
11
- "eo2js": "0.0.8",
12
- "fast-xml-parser": "5.2.3",
13
- "node": "24.1.0",
14
- "relative": "3.0.2",
15
- "semver": "7.7.2",
16
- "sync-request": "6.1.0",
17
- "xmlhttprequest": "1.8.0"
9
+ "colors": "^1.4.0",
10
+ "commander": "^12.1.0",
11
+ "eo2js": "^0.0.8",
12
+ "fast-xml-parser": "^5.2.3",
13
+ "node": "^24.1.0",
14
+ "relative": "^3.0.2",
15
+ "semver": "^7.7.2",
16
+ "sync-request": "^6.1.0",
17
+ "xmlhttprequest": "^1.8.0"
18
18
  },
19
19
  "description": "A collection of command line tools for EOLANG: compiling, parsing, transpiling to other languages, optimizing, and analyzing",
20
20
  "devDependencies": {
21
21
  "@eslint/js": "^9.27.0",
22
- "eslint": "9.28.0",
23
- "eslint-config-google": "0.14.0",
22
+ "eslint": "^9.28.0",
23
+ "eslint-config-google": "^0.14.0",
24
24
  "eslint-plugin-promise": "^7.2.1",
25
- "grunt": "1.6.1",
26
- "grunt-contrib-clean": "2.0.1",
27
- "grunt-eslint": "25.0.0",
25
+ "grunt": "^1.6.1",
26
+ "grunt-contrib-clean": "^2.0.1",
27
+ "grunt-eslint": "^25.0.0",
28
28
  "grunt-mocha-cli": "^7.0.0",
29
- "mocha": "^11.5.0",
29
+ "mocha": "^11.7.0",
30
30
  "patch-package": "^8.0.0"
31
31
  },
32
32
  "engines": {
@@ -54,8 +54,8 @@
54
54
  ],
55
55
  "repository": "objectionary/eoc",
56
56
  "scripts": {
57
- "postinstall": "patch-package",
57
+ "postinstall": "node scripts/postinstall.js",
58
58
  "test": "mocha --timeout 1200000"
59
59
  },
60
- "version": "0.30.0"
60
+ "version": "0.30.2"
61
61
  }
@@ -0,0 +1,53 @@
1
+ #!/usr/bin/env node
2
+
3
+ /*
4
+ * SPDX-FileCopyrightText: Copyright (c) 2022-2025 Objectionary.com
5
+ * SPDX-License-Identifier: MIT
6
+ */
7
+
8
+ /**
9
+ * Conditional postinstall script that only runs patch-package in development.
10
+ * This prevents patch-package from running during production installs where
11
+ * devDependencies (like grunt-mocha-cli) are not available.
12
+ */
13
+
14
+ const fs = require('fs');
15
+ const path = require('path');
16
+ const { spawn } = require('child_process');
17
+
18
+ const gruntMochaCli = path.join(__dirname, '..', 'node_modules', 'grunt-mocha-cli');
19
+
20
+ function findPatchPackage() {
21
+ const binDir = path.join(__dirname, '..', 'node_modules', '.bin');
22
+ if (process.platform === 'win32') {
23
+ const cmdFile = path.join(binDir, 'patch-package.cmd');
24
+ if (fs.existsSync(cmdFile)) {
25
+ return cmdFile;
26
+ }
27
+ }
28
+ const binFile = path.join(binDir, 'patch-package');
29
+ if (fs.existsSync(binFile)) {
30
+ return binFile;
31
+ }
32
+ return null;
33
+ }
34
+
35
+ const patchPackageBin = findPatchPackage();
36
+
37
+ if (fs.existsSync(gruntMochaCli) && patchPackageBin) {
38
+ console.log('Development environment detected, running patch-package...');
39
+ const spawnOptions = {
40
+ stdio: 'inherit',
41
+ shell: process.platform === 'win32'
42
+ };
43
+ const child = spawn(patchPackageBin, [], spawnOptions);
44
+ child.on('exit', (code) => {
45
+ process.exit(code);
46
+ });
47
+ child.on('error', (err) => {
48
+ console.error('Failed to execute patch-package:', err);
49
+ process.exit(1);
50
+ });
51
+ } else {
52
+ console.log('Production environment detected, skipping patch-package.');
53
+ }
@@ -16,7 +16,7 @@ const {elapsed} = require('../elapsed');
16
16
  module.exports = function(opts) {
17
17
  const target = path.resolve(opts.target);
18
18
  return elapsed((tracked) => mvnw(['eo:assemble'].concat(flags(opts)), opts.target, opts.batch).then((r) => {
19
- tracked.print('EO program assembled in %s', rel(target));
19
+ tracked.print(`EO program assembled in ${rel(target)}`);
20
20
  return r;
21
21
  }));
22
22
  };
package/src/version.js CHANGED
@@ -6,6 +6,6 @@
6
6
  // The values here are replaced automatically by the .rultor.yml script,
7
7
  // at the "release" pipeline:
8
8
  module.exports = {
9
- what: '0.30.0',
10
- when: '2025-06-22'
9
+ what: '0.30.2',
10
+ when: '2025-06-23'
11
11
  };