This repository was archived by the owner on Oct 9, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathchange.log
125 lines (94 loc) · 6.49 KB
/
change.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
=====================
JSLib (npm) Changelog
Version 1.9.4
=====================
Planned for the next version:
- Fix visual glitch when using "autoSubmit" and pressing Enter in MenuPrompt
CURRENT > [1.9.4]:
- Fixed invalid usage of the "SIGKILL" signal in `jsl.softShutdown()` (GitHub issue #49)
- Added function `jsl.randomItem()` that returns a random item of an array
[1.9.3]:
- Decreased size of package by adding some files to the `.npmignore` (GitHub issue #45)
- Fixed memory leak issues as all events in `jsl.pause()` are now correctly unregistered (GitHub issue #43)
- Fixed the JSDoc documentation comments for `jsl.seededRNG.generateSeededNumbers()` and some other functions (GitHub issue #44)
- Improved handling of the two separate `package.json` files, for NPM and GPR (GitHub issue #47)
- Modified the `.editorconfig` a bit
[1.9.2]:
- Fixed some minor docs issues
- Added Promise return to `jsl.downloadFile()` and `jsl.readdirRecursive()`
- Made "Exit" text localizable in `jsl.MenuPrompt`
[1.9.1]:
- `jsl.pause()` now correctly unregisters events, fixing memory leak issues
[1.9.0]:
- `jsl.unused()` now has a rest parameter instead of a single parameter
- Added `jsl.removeDuplicates()` to remove duplicate entries in an array
- Added `jsl.pause()` to wait until user confirmation before continuing code execution
- Added a `localization` property to `jsl.MenuPrompt` to enable it for being translated
- Added `jsl.inDebugger()` to check if the process is currently running in a debugger
- Fixed a bug in `jsl.MenuPrompt` by ensuring that the raw mode of the stdin is always set to true
[1.8.4]:
- Fixed high severity security vulnerabilities in ESLint's dependencies:
- acorn https://app.snyk.io/vuln/SNYK-JS-ACORN-559469
- minimist https://app.snyk.io/vuln/SNYK-JS-MINIMIST-559764
[1.8.3]:
- TIL you can't use a previously published and unpublished tag in NPM *sigh #2*
[1.8.2]:
- fixed typo in the JSDoc comment for "jsl.randRange()"
- fixed JSDoc typedefs for MenuPrompt
- fixed "directory not found" error in the unit test script
- added GitHub actions scripts to automate building and publishing
- added MenuPrompt option to auto submit the menu after a single char was entered
[1.8.1]:
- improvements / fixes:
- version bumped because GitHub package registry doesn't allow unpublishing *sigh*
[1.8.0]:
- new features:
- function "jsl.seededRNG.generateSeededNumbers(count, seed)" to generate "random" numbers based on a passed seed
- function "jsl.seededRNG.generateRandomSeed(digitCount)" to generate a random seed to be used in "jsl.generateSeededNumbers()"
- function "jsl.seededRNG.validateSeed(seed)" to check whether or not a seed is valid
- function "jsl.mapRange(value, range_1_min, range_1_max, range_2_min, range_2_max)" to transform a value from one numerical range to another
- function "jsl.downloadFile(url, destPath, options)" to download a file from a URL
- function "jsl.unused(any_var)" to indicate an unused variable to a linter
- function "jsl.replaceAt(input: str, index: number, replacement: str)" to replace a character at the specified index of a string with a replacement
- function "jsl.randomizeArray(array: array)" to randomize the indexes of the items of an array
- object "colors" to make it easier to add colors to the console output - this will replace "jsl.consoleColor()"
- class "MenuPrompt" for an interactive menu (directly in the CLI) - methods:
- "open()" to open the prompt
- "addMenu()" to add a new menu to the prompt
- "validateMenu()" to check whether a menu is invalid
- "currentMenu()" to get the current menu index
- "close()" to prematurely close the prompt and get the results
- "result()" to prematurely get the results of the prompt (without closing it)
- added unit tests for every function, class and object. They can be run with "npm test" or "node unittest"
- improvements / fixes:
- added support for ESLint (use "npm i --save-dev" and then "npm run lint")
- improved time measurement system for "jsl.ping()"
- improved the background stuff in "jsl.ping()" to improve performance
- added "contentType" property to "jsl.ping()"'s promise callback
- edited a bunch of functions and methods to throw an error instead of returning it as a string, which could've caused unwanted and unpredictable behavior
- put the UUID generation inside an object, renamed it and added four new ones:
- "generateUUID.hexadecimal(format: str, upperCase: bool)" [0-9,a-f/A-F]
- "generateUUID.alphanumerical(format: str, upperCase: bool)" [0-9,a-z/A-Z]
- "generateUUID.decimal(format: str)" [0-9]
- "generateUUID.binary(format: str)" [0-1]
- "generateUUID.custom(format: str, possibleValues: str)" [Custom]
- added "contributors" and "documentation" properties to the "jsl.info" object
- removed the signal "SIGKILL" from the shutdown prevention functions as "SIGKILL" is intended as a signal that forces a process to be exited no matter what
- rewrote the entire documentation, I'm crying rn
- restructured the entire script to separate each function into its own file
- fixed "isEmpty()"'s object-with-length-0-detection
[1.7.0]:
- fixed typo in "readme.md"
- added "ProgressBar" class to create a dynamic progress bar
- added function "jsl.readdirRecursive(folder, callback(err, result){})" to read a folder and its subfolders asynchronously
- added function "jsl.readdirRecursiveSync(folder)" to read a folder and its subfolders synchronously
- added function "jsl.readableArray(array, separators, lastSeparator)" to make an array more easily human-readable
- split the package up into three separate files
- removed all dependencies because they are either included by default or their effect was easily recreatable in vanilla JS
[1.6.6]:
- removed "jsl.settings" completely
- updated documentation for "jsl.ping()"
[1.6.5]:
- changed dependency "perf_hooks" to "execution-time" because a feature was deprecated
- completely deprecated the all-lowercase alias "jsl.isempty()" of the function "jsl.isEmpty()"
- cleaned up the code a bit