Releases: shelljs/shelljs
Releases · shelljs/shelljs
v0.9.2
v0.9.1
v0.9.0
What's Changed
- fix: Exit 1 with empty string if no match by @wyardley in #901
- feat(cp): support update flag when recursing by @joshi-sh in #889
- ci: change language to node_js and remove obsolete scripts by @DanielRuf in #910
- chore: remove gitter integration by @nfischer in #907
- chore(npm): remove lockfile by @nfischer in #911
- chore: script to bump supported node versions by @nfischer in #913
- chore(node): drop node v4 and v5 by @nfischer in #917
- fix(exec): consistent error message for maxBuffer by @nfischer in #919
- chore(test): no coverage by default by @nfischer in #920
- chore(node): add v10 and v11 to CI by @nfischer in #921
- test(touch): add coverage for -d option by @nfischer in #925
- feat(options): initial support for long options by @nfischer in #926
- docs: clarify which methods return ShellStrings by @nfischer in #934
- docs: fix typo by @Jason-Cooke in #943
- chore(lint): alphabetize lint rules by @nfischer in #946
- chore(lint): upgrade eslint by @nfischer in #947
- docs(sed): clarify using
sed
with newlines in #949 - docs(exec): document security concerns by @nfischer in #950
- docs(exec): minor wording changes on security doc by @nfischer in #951
- chore(lint): update lint dependencies by @nfischer in #948
- Add boolean
fatal
option toexec()
function by @WesCossick in #961 - test: misc test changes by @nfischer in #970
- chore: update dev deps by @nfischer in #971
- Silence potentially upcoming circular dependency warning by @addaleax in #973
- fix(exec): join paths correctly by @nfischer in #975
- feat: add shell.cmd to replace exec by @nfischer in #866
- Update “OS X” to “macOS” by @sonicdoe in #977
- chore: support up to node v13 by @nfischer in #978
- fix(mv): Fix moving files across volumes by @christopherthielen in #982
- Update ls with glob example. by @smack0007 in #1006
- chore: change supported node versions by @nfischer in #1011
- Cleanup LICENSE by @reviewher in #966
- test(cmd): add test for caret char by @nfischer in #1017
- fix(mkdir): mitigate directory creation race condition by @rivy in #1019
- Added mkdir -p tests for subdirectories by @JessieFrance in #1026
- remove file extension by @JessieFrance in #1033
- Fix test command example by @wafuwafu13 in #1043
- chore: set up GitHub Actions CI by @nfischer in #1055
- Removed mentions of documentup website by @fineon in #1056
- fix(exec): lockdown file permissions by @nfischer in #1060
- chore: add SECURITY.md by @nfischer in #1061
- docs(ls): document the toString() override by @nfischer in #1065
- docs(chmod): briefly mention Windows file perms by @nfischer in #1066
- sed with -i option now runs silently by @joshi-sh in #959
- Feature: Expose Error Code by @JessieFrance in #1036
- Feature/grep n by @fhanrath in #1057
- Added support for -n +NUM in tail.js (with sign) by @A-725-K in #1027
- chore: remove codecov devDependency by @nfischer in #1069
- chore: update deps by @nfischer in #1072
- test(cp): fix cp -Ru test cases by @nfischer in #1073
- Add preserve option to cp by @nfischer in #869
- docs(import): document es6 import command by @nfischer in #1077
- docs(touch): clarify docs for touch() command by @nfischer in #1078
- Added -L to find to visit symlinked folders too. by @mperrando in #1080
- chore: update CI to include v18 by @nfischer in #1099
- chore: add codecov token by @nfischer in #1125
- chore: update CI to test against node v20 by @nfischer in #1123
- fix: shell.errorCode() honors shell.exit(code) by @nfischer in #1122
- docs: fix typo in security policy by @nfischer in #1134
- chore: update nyc to v15 by @nfischer in #1139
- chore: keep node < 16 around longer by @nfischer in #1141
- chore: remove codecov token by @nfischer in #1138
- test: add coverage for exit function by @nfischer in #1142
- Bump GitHub workflow actions to latest versions by @deining in #1136
- Fixing typos by @deining in #1137
- Exports shell.js and make.js on package.json by @alexojegu in #1135
- test: make a test more forgiving for systems with non-standard bash and sh paths by @skeet70 in #1144
- docs: change GitHub Actions README badge by @nfischer in #1145
- chore: try codecov token again by @nfischer in #1151
- test: create test files inside temp directory by @nfischer in #1150
- chore: remove unsupported node configs from CI by @nfischer in #1159
- test: add test coverage for some globOptions by @nfischer in #1163
- test: add more coverage for globOptions by @nfischer in #1164
- deprecate config.globOptions by @nfischer in #1152
- Fix Windows test errors in src/ls.js and test/cp.js. by @kmashint in #1166
- chore: switch to codecov v4 by @nfischer in #1167
- chore(dependencies): update js-yaml by @nfischer in #1169
- chore: pin node v22.9.0 by @nfischer in #1182
- chore: switch to testing LTS releases only by @nfischer in #1183
- chore: drop support for old node versions by @nfischer in #1181
- Add the exit code to the fatal error thrown from common.error(). by @kmashint in #1179
- refactor: unescape quotes by @nfischer in #1184
- refactor: switch to fast-glob by @nfischer in #1153
- feat: expose new shell.cmd() by @nfischer in #1185
- refactor: move exec-child logic into main function by @nfischer in #1186
- refactor: rewrite gendocs script without commands.js by @nfischer in #1187
- chore: update maintainers list by @nfischer in #1188
- test: document test for newline in cmd() function by @nfischer in #1189
- refactor: prefer includes() over indexOf() by @nfischer in #1190
- chore: commit package-lock.json by @nfischer in #1191
- chore: update ava dep by @nfischer in #1193
- Explicitly require commands by @Everspace in #1119
- refactor: follow up fixes for static imports by @nfischer in #1194
New Contributors
- @DanielRuf made their first contribution in #910
- @Jason-Cooke made their first contribution in #943
- @WesCossick made their first contribution in #961
- @addaleax made their first contribution in #973
- @sonicdoe made their first contribution in #977
- @christopherthielen made their first contribution in https://github.com/shelljs/shelljs/pul...
v0.8.5
v0.8.4
v0.8.3
Closed issues:
- Shelljs print stderr to console even if exec-only "silent" is true #905
- refactor: remove common.state.tempDir #902
- Can't suppress stdout for echo #899
- exec() doesn't apply the arguments correctly #895
- shell.exec('npm pack') painfully slow #885
- shelljs.exec cannot find app.asar/node_modules/shelljs/src/exec-child.js #881
- test infra: mocks and skipOnWin conflict #862
- Support for shell function completion on IDE #859
- echo command shows options in stdout #855
- silent does not always work #851
- Appveyor installs the latest npm, instead of the latest compatible npm #844
- Force symbolic link (ln -sf) does not overwrite/recreate existing destination #830
- inconsistent result when trying to echo to a file #798
- Prevent require()ing executable-only files #789
- Cannot set property to of [object String] which has only a getter #752
- which() should check executability before returning a value #657
- Bad encoding experience #456
- phpcs very slow #440
- Error shown when triggering a sigint during shelljs.exec if process.on sigint is defined #254
.to\(file\)
does not mute STDIO output #146- Escaping shell arguments to exec() #143
- Allow multiple string arguments for exec() #103
- cp does not recursively copy from readonly location #98
- Handling permissions errors on file I/O #64
Merged pull requests:
- Add test case for sed on empty file #904 (wyardley)
- refactor: don't expose tempdir in common.state #903 (nfischer)
- chore(ci): fix codecov on travis #897 (nfischer)
- chore(npm): add ci-or-install script #896 (nfischer)
- Fix silent exec #892 (nfischer)
- chore(appveyor): run entire test matrix #886 (nfischer)
- docs: remove gitter badge #880 (nfischer)
- grep includes the i flag #876 (ppsleep)
- Fix(which): match only executable files (#657) #874 (termosa)
- chore: rename some tests #871 (nfischer)
- Fix cp from readonly source #870 (nfischer)
- chore: bump dev dependencies and add package-lock #864 (nfischer)
- fix(mocks): fix conflict between mocks and skip #863 (nfischer)
- chore: output npm version in travis #850 (nfischer)
- Prevent require-ing bin/shjs #848 (freitagbr)
- chore(appveyor): do not use latest npm #847 (nfischer)
- chore: update shelljs-release version #846 (nfischer)
v0.8.2
Closed issues:
- High severity vulnerability in shelljs 0.8.1 #842
- Add test for ls() on a symlink to a directory #795
- Harden shell.exec by writing the child process in a source file #782
- shell.exec() doesn't respond correctly to config.fatal = true #735
- Merge 'exec: internal error' with ShellJSInternalError #734
- exec returning null from command #724
- Only Get Stderr from Exec #371
- Execute child.stdout.on before child.on("exit") #224
Merged pull requests:
- Workaround codecov bug of miscalculation of coverage (#795) #838 (dwi2)
- Update doc comments and regenerate README.md. #825 (Zearin)
- chore: update contributing guidelines #817 (nfischer)
- chore(lint): don't allow excess trailing newlines #816 (nfischer)
- Remove separate "internal error" from exec #802 (freitagbr)
v0.8.1
v0.8.0
Closed issues:
- Snyk vulnerability DB reporting command injection vulnerability in ShellJS #810
- chore: upgrade nyc #803
- Update CI to use Node v9 #799
- Link to FAQ wiki section in our issue template #787
- Is it possible to get a js library(file) for ShellJS #776
- 48, #774
- 47 #773
- Exec function calls JSON.stringify on command #772
- getting different result from terminal and with shelljs #769
- test() does not support -w and -x options #768
- Snyk "high severity" issue #766
- Snyk "high security #765
- ShellJS doesn't respect NPM Registry being set outside of it #761
- Run second shell script #756
- shelljs seems NOT compatible with nexe under CentOS 6.5 #754
- Feature request: pushd/popd -q option #753
- cat doesn't support '-n' option #750
- shelljs run xcodebuild error #749
- Add wrappers around fs.statSync and fs.lstatSync #745
- Improve coverage for exec() #742
- Improve coverage for head() #741
- shelljs is no longer used in PDF.js #737
- ls doesn't follow links to directories #733
- Add test for
ls regular-file.txt
#732 - shelljs.exec hangs when password it's asked #716
- Clean up common tests #714
- Can't run docker with exec() (the input device is not a TTY) #680
- Cant get encoding buffer to work on exec #675
- Set up Codecov for the project #671
- ShellJS: internal error Error: EBUSY: resource busy or locked, lstat 'C:\pagefile.sys' #514
- Feature request: provide a way to skip option parsing #778
- Switch to os.homedir() when we move to v4+ #683
- Drop support for v0.12 #647
- feature: echo -n #559
- Don't kill the node process upon unexpected error #483
- Echo doesn't return value ending in a trailing newline #476
- Synchronous exec stalls permenantly when there is an error/w the shell #7
Merged pull requests:
- docs: announce plugin API #812 (nfischer)
- chore: update CI to Node v9 #811 (nfischer)
- refactor(exec): remove paramsFile #807 (nfischer)
- chore: update nyc dependency #805 (nfischer)
- refactor: harden plugins against unknown options #804 (nfischer)
- chore(eslint): use words instead of numbers #797 (nfischer)
- Add note to issue template about FAQ #794 (freitagbr)
- Remove codeFile parameter #791 (nfischer)
- Use execFileSync to launch child process #790 (nfischer)
- refactor(exec): move child process to source file #786 (nfischer)
- Remove unnecessary shell.error checks from common tests #785 (freitagbr)
- Add a test for ls for a single file #784 (freitagbr)
- Wrap fs.statSync and fs.lstatSync #783 (freitagbr)
- chore: set AVA options #780 (nfischer)
- chore: clean up refs to unsupported node versions #779 (nfischer)
- Added
-q
(quiet) option topush
,popd
,dirs
functions. #777 (alexreg) - feat(cat): number output lines (#750) #775 (gcca)
- refactor(test): update AVA and refactor tests #760 (nfischer)
- chore: add skipOnWin and skipOnUnix test helpers #746 (nfischer)
- test(exec): add tests for coverage #744 (nfischer)
- test(head): improve coverage #743 (nfischer)
- Remove PDF.js mention from README.md #738 (voy)
- Provide an API to pass parameters which resemble options #792 (nfischer)
- Fix ls not following links to directories by default #764 (freitagbr)
- Add "encoding" option to exec #763 (freitagbr)
- Merge dev into master #731 (freitagbr)
- Deprecate common.getUserHome, advise using os.homedir instead #725 (freitagbr)
- Echo test mocks #708 (freitagbr)
- Safely exit by throwing an error #546 (freitagbr)
- chore(make): depreciate shelljs/make #431 (ariporad)
v0.7.8
Closed issues:
- Add node v8 to CI #729
- Exec not working in Electron ! #726
- is rechoir used anywhere? #723
- ShellJS: internal error on shelljs.mkdir('myFile/myDir') #720
- Can't make sed perform global replace #719
- grep: option not recognized: l #717
- Problems getting code, stdout, stderr #715
- Copying hidden files fails on Windows 10 #711
- How am I suppose to handle errors with ShellJS? #707
- use cp('-r', './src', './dist') bug #705
- Way to ignore files in globs. #699
- Buffer constructor is deprecated #694
- source command not working via exec method. #693
- Would you be interested in a PR for
open
? #692 - Get rid of common.platform in favor of process.platform #670
- Passing empty string to cp throws internal error #664
- Why does sed split files into an array, call replace on each line and rejoin? #645
- feat: cp & mv should not overwrite recently created files #631
- Echo tests unnecessarily run tests in own process #622
- rm -rf on a symbolic link to a dir deletes its contents #587
- "Cannot extract package" with node-webkit #181
- EBADF, bad file descriptor #180
Merged pull requests:
- Add node 8 to CI #730 (freitagbr)
- Deprecate common.getUserHome, advise using os.homedir instead #725 (freitagbr)
- fix(mkdir): improve error handling around files #721 (nfischer)
- Properly handle directories as arguments #713 (nfischer)
- Add common.buffer #710 (freitagbr)
- Fix common.expand error #709 (freitagbr)
- Echo test mocks #708 (freitagbr)
- refactor: remove unnecessary common.js imports #703 (nfischer)
- Fix #631 throw error when overwriting recently created file #702 (uttpal)
- Small clarification of verbose flag #691 (zommerfelds)
- fix(grep, sed, sort, uniq): Split only on newline characters #690 (freitagbr)
- Refactor: Use process.platform across codebase #689 (freitagbr)
- Remove contents of symlink to dir with rm -rf #688 (freitagbr)
- Echo stdout #677 (nfischer)