rust-just 1.48.1 → 1.50.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/lib/index.mjs +17 -17
  3. package/package.json +13 -10
package/CHANGELOG.md CHANGED
@@ -1,6 +1,85 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ [1.50.0](https://github.com/casey/just/releases/tag/1.50.0) - 2026-04-19
5
+ ------------------------------------------------------------------------
6
+
7
+ ### Added
8
+ - Filter `--choose` by `--group` ([#3298](https://github.com/casey/just/pull/3298) by [casey](https://github.com/casey))
9
+ - Add `[android]` recipe attribute ([#2884](https://github.com/casey/just/pull/2884) by [duncanawoods](https://github.com/duncanawoods))
10
+ - Add `module_path()` function ([#3270](https://github.com/casey/just/pull/3270) by [casey](https://github.com/casey))
11
+
12
+ ### Fixed
13
+ - Preserve trailing comments when formatting ([#3282](https://github.com/casey/just/pull/3282) by [casey](https://github.com/casey))
14
+ - Preserve comments before `[doc]` attribute ([#3275](https://github.com/casey/just/pull/3275) by [casey](https://github.com/casey))
15
+ - Allow comments after unexports ([#3264](https://github.com/casey/just/pull/3264) by [casey](https://github.com/casey))
16
+
17
+ ### Changed
18
+ - Stabilize `--fmt` subcommand ([#3301](https://github.com/casey/just/pull/3301) by [casey](https://github.com/casey))
19
+ - Ignore trailing `::` on last argument ([#3300](https://github.com/casey/just/pull/3300) by [casey](https://github.com/casey))
20
+ - Complete files and directories when completing arguments ([#3299](https://github.com/casey/just/pull/3299) by [casey](https://github.com/casey))
21
+ - Include `module_path` field in JSON ([#3288](https://github.com/casey/just/pull/3288) by [casey](https://github.com/casey))
22
+ - Partially collapse blank lines between items ([#3274](https://github.com/casey/just/pull/3274) by [casey](https://github.com/casey))
23
+ - Omit defaults when formatting settings ([#3268](https://github.com/casey/just/pull/3268) by [casey](https://github.com/casey))
24
+
25
+ ### Misc
26
+ - Fix `read()` description ([#3295](https://github.com/casey/just/pull/3295) by [casey](https://github.com/casey))
27
+ - Note that pull requests are not currently being accepted ([#3289](https://github.com/casey/just/pull/3289) by [casey](https://github.com/casey))
28
+ - Improve completer config parsing ([#3287](https://github.com/casey/just/pull/3287) by [casey](https://github.com/casey))
29
+ - Test that aliases complete with environment variable ([#3286](https://github.com/casey/just/pull/3286) by [casey](https://github.com/casey))
30
+ - Replace unnecessary raw strings ([#3281](https://github.com/casey/just/pull/3281) by [casey](https://github.com/casey))
31
+ - Fix test string indentation ([#3280](https://github.com/casey/just/pull/3280) by [casey](https://github.com/casey))
32
+ - Document `assert()` in readme ([#3279](https://github.com/casey/just/pull/3279) by [casey](https://github.com/casey))
33
+ - Replace dashes with underscores when using `--evaluate-format shell` ([#3278](https://github.com/casey/just/pull/3278) by [casey](https://github.com/casey))
34
+ - Fix readme typos ([#3277](https://github.com/casey/just/pull/3277) by [casey](https://github.com/casey))
35
+ - Test multi-line recipe comments ([#3276](https://github.com/casey/just/pull/3276) by [casey](https://github.com/casey))
36
+ - Document `set no-exit-message` and `[exit-message]` ([#3269](https://github.com/casey/just/pull/3269) by [casey](https://github.com/casey))
37
+ - Refactor end-of-file handling in lexer ([#3267](https://github.com/casey/just/pull/3267) by [casey](https://github.com/casey))
38
+ - Fix end-of-file parsing ([#3266](https://github.com/casey/just/pull/3266) by [casey](https://github.com/casey))
39
+ - Update softprops/action-gh-release to 2.6.1 ([#3253](https://github.com/casey/just/pull/3253) by [casey](https://github.com/casey))
40
+ - Include bash completion script in crate ([#3252](https://github.com/casey/just/pull/3252) by [casey](https://github.com/casey))
41
+
42
+ [1.49.0](https://github.com/casey/just/releases/tag/1.49.0) - 2026-04-04
43
+ ------------------------------------------------------------------------
44
+
45
+ ### Added
46
+ - Add `--time` to print recipe execution time ([#3099](https://github.com/casey/just/pull/3099) by [GeorgeLS](https://github.com/GeorgeLS))
47
+ - Add user-defined functions ([#3247](https://github.com/casey/just/pull/3247) by [casey](https://github.com/casey))
48
+ - Add just skill for agents ([#3241](https://github.com/casey/just/pull/3241) by [casey](https://github.com/casey))
49
+ - Allow expressions in confirm attribute ([#3238](https://github.com/casey/just/pull/3238) by [begoon](https://github.com/begoon))
50
+ - Add `--complete-aliases` ([#3235](https://github.com/casey/just/pull/3235) by [casey](https://github.com/casey))
51
+ - Add `--justfile-name` to configure justfile filename ([#3234](https://github.com/casey/just/pull/3234) by [casey](https://github.com/casey))
52
+ - Add `runtime_directory()` function ([#3226](https://github.com/casey/just/pull/3226) by [barskern](https://github.com/barskern))
53
+ - Add `--evaluate-format` ([#3221](https://github.com/casey/just/pull/3221) by [casey](https://github.com/casey))
54
+ - Allow passing variable and module paths to `--evaluate` ([#3219](https://github.com/casey/just/pull/3219) by [casey](https://github.com/casey))
55
+ - Add `--indentation` ([#3215](https://github.com/casey/just/pull/3215) by [casey](https://github.com/casey))
56
+ - Add `module_file()` and `module_directory()` to readme ([#2965](https://github.com/casey/just/pull/2965) by [cspotcode](https://github.com/cspotcode))
57
+ - Add Nix flake ([#2972](https://github.com/casey/just/pull/2972) by [neunenak](https://github.com/neunenak))
58
+
59
+ ### Fixed
60
+ - Allow reading `.env` from special files ([#3250](https://github.com/casey/just/pull/3250) by [casey](https://github.com/casey))
61
+ - Load environment files in submodules ([#3243](https://github.com/casey/just/pull/3243) by [casey](https://github.com/casey))
62
+ - Avoid process substitution in bash completion script ([#3217](https://github.com/casey/just/pull/3217) by [casey](https://github.com/casey))
63
+ - Dont pass shell name to powershell ([#3209](https://github.com/casey/just/pull/3209) by [casey](https://github.com/casey))
64
+
65
+ ### Misc
66
+ - Add just implementation of rule110 ([#3249](https://github.com/casey/just/pull/3249) by [casey](https://github.com/casey))
67
+ - Add instructions for skill to readme ([#3245](https://github.com/casey/just/pull/3245) by [casey](https://github.com/casey))
68
+ - Remove comma in readme ([#3244](https://github.com/casey/just/pull/3244) by [casey](https://github.com/casey))
69
+ - Move bash completion registration script into etc/ ([#3242](https://github.com/casey/just/pull/3242) by [casey](https://github.com/casey))
70
+ - Avoid to_string_lossy in directory function tests ([#3232](https://github.com/casey/just/pull/3232) by [casey](https://github.com/casey))
71
+ - Add installation overview ([#3231](https://github.com/casey/just/pull/3231) by [casey](https://github.com/casey))
72
+ - Warn if invocation directory or justfile path is not Unicode ([#3230](https://github.com/casey/just/pull/3230) by [casey](https://github.com/casey))
73
+ - Don't use make syntax highlighting in vim ([#2906](https://github.com/casey/just/pull/2906) by [alerque](https://github.com/alerque))
74
+ - Fix Name Display impl to pad correctly ([#3222](https://github.com/casey/just/pull/3222) by [casey](https://github.com/casey))
75
+ - Rename `evaluate_target` to `evaluation_target` ([#3220](https://github.com/casey/just/pull/3220) by [casey](https://github.com/casey))
76
+ - Include recipe path in verbose output ([#3213](https://github.com/casey/just/pull/3213) by [behnam-oneschema](https://github.com/behnam-oneschema))
77
+ - Move recipe methods onto resolved recipe ([#3214](https://github.com/casey/just/pull/3214) by [casey](https://github.com/casey))
78
+ - Document that `semver_matches()` returns strings ([#3212](https://github.com/casey/just/pull/3212) by [casey](https://github.com/casey))
79
+ - Build riscv64 release binaries ([#3210](https://github.com/casey/just/pull/3210) by [gounthar](https://github.com/gounthar))
80
+ - Include shell name in I/O error messages ([#3208](https://github.com/casey/just/pull/3208) by [casey](https://github.com/casey))
81
+ - Don't print signal error message if recipe has `[no-exit-message]` ([#3200](https://github.com/casey/just/pull/3200) by [imp-joshi](https://github.com/imp-joshi))
82
+
4
83
  [1.48.1](https://github.com/casey/just/releases/tag/1.48.1) - 2026-03-27
5
84
  ------------------------------------------------------------------------
6
85
 
package/lib/index.mjs CHANGED
@@ -9,13 +9,19 @@ var __defProp = Object.defineProperty;
9
9
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
10
10
  async function getExePath() {
11
11
  const platform$1 = platform();
12
- const arch$1 = arch();
12
+ let arch$1 = arch();
13
13
  let os = platform$1;
14
14
  let extension = "";
15
15
  if (platform$1 === "win32" || platform$1 === "cygwin") {
16
16
  os = "windows";
17
17
  extension = ".exe";
18
18
  }
19
+ if (arch$1 === "arm") {
20
+ const armVersion = process.config?.variables?.arm_version;
21
+ if (armVersion === "7" || armVersion === 7) {
22
+ arch$1 = "armv7";
23
+ }
24
+ }
19
25
  try {
20
26
  return import.meta.resolve(
21
27
  `rust-just-${os}-${arch$1}/bin/just${extension}`
@@ -27,32 +33,26 @@ async function getExePath() {
27
33
  }
28
34
  }
29
35
  __name(getExePath, "getExePath");
30
- function safeParse(jsonString) {
31
- try {
32
- return JSON.parse(jsonString);
33
- } catch (e) {
34
- console.error("Invalid JSON format in --options");
35
- process.exit(1);
36
- }
37
- }
38
- __name(safeParse, "safeParse");
39
36
  async function run() {
40
37
  const exePath = await getExePath();
41
38
  const argv = yargs(hideBin(process.argv)).option("execaoptions", {
42
39
  type: "string",
43
40
  description: "Execa options in JSON format"
41
+ }).coerce("execaoptions", (arg) => {
42
+ try {
43
+ return JSON.parse(arg);
44
+ } catch (e) {
45
+ throw new Error("Invalid JSON format in --execaoptions");
46
+ }
44
47
  }).parserConfiguration({
45
48
  "unknown-options-as-args": true
46
- }).help(false).version(false).parse();
49
+ }).help(false).version(false).parseSync();
47
50
  const args = argv._;
48
- let execaOptions = {
51
+ const execaOptions = {
49
52
  stdio: "inherit",
50
- reject: false
53
+ reject: false,
54
+ ...argv.execaoptions || {}
51
55
  };
52
- if (argv.execaoptions) {
53
- const userOptions = safeParse(argv.execaoptions);
54
- execaOptions = { ...execaOptions, ...userOptions };
55
- }
56
56
  const processResult = await execa(fileURLToPath(exePath), args, execaOptions);
57
57
  process.exit(processResult.exitCode ?? 0);
58
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rust-just",
3
- "version": "1.48.1",
3
+ "version": "1.50.0",
4
4
  "description": "🤖 Just a command runner",
5
5
  "bin": {
6
6
  "just": "lib/index.mjs",
@@ -49,16 +49,19 @@
49
49
  "@typescript-eslint/parser": "^8.21.0",
50
50
  "eslint": "^10.0.0",
51
51
  "tsup": "^8.3.5",
52
- "typescript": "^5.7.3"
52
+ "typescript": "^6.0.2"
53
53
  },
54
54
  "optionalDependencies": {
55
- "rust-just-darwin-arm64": "1.48.1",
56
- "rust-just-darwin-x64": "1.48.1",
57
- "rust-just-linux-arm": "1.48.1",
58
- "rust-just-linux-arm64": "1.48.1",
59
- "rust-just-linux-x64": "1.48.1",
60
- "rust-just-windows-arm64": "1.48.1",
61
- "rust-just-windows-x64": "1.48.1"
55
+ "rust-just-darwin-arm64": "1.50.0",
56
+ "rust-just-darwin-x64": "1.50.0",
57
+ "rust-just-linux-arm": "1.50.0",
58
+ "rust-just-linux-arm64": "1.50.0",
59
+ "rust-just-linux-armv7": "1.50.0",
60
+ "rust-just-linux-loong64": "1.50.0",
61
+ "rust-just-linux-riscv64": "1.50.0",
62
+ "rust-just-linux-x64": "1.50.0",
63
+ "rust-just-windows-arm64": "1.50.0",
64
+ "rust-just-windows-x64": "1.50.0"
62
65
  },
63
66
  "eslintConfig": {
64
67
  "extends": [
@@ -74,7 +77,7 @@
74
77
  ],
75
78
  "root": true
76
79
  },
77
- "packageManager": "yarn@4.12.0",
80
+ "packageManager": "yarn@4.13.0",
78
81
  "publishConfig": {
79
82
  "access": "public"
80
83
  },