v1.4.0
Finally guys, I got 1.4.0 out. There's actually very little changes in this, but it took me half a year to even publish this version, because the docs is unfinished. I literally forced myself to do it just because too many months has passed. I actually wanted the version to be 1.3.0, but my brain is horribly failing due of pressure at this point, so eh, whatever.
What changed
-
Code beautifier has been changed to
prettier
. Styling is enforced everywhere. At least it's better thanjs-beautify
-
The
bugfixes
setting for@babel/preset-env
was turned on. It did nothing though -
CodeQL workflow now runs the build script (and fails). All workflows now use node 16.
-
A cross-platform build script was introduced.
-
Removed useless VS Code launch config.
-
There's a very incomplete documentation now.
-
The compiled code built by Babel is now bundled into the npm package.
-
bin/bs-gen.js
is renamed tobin/cli.js
. -
src/bullshit.js
was added due of weird issue related to the new build script. It is just a shortcut tosrc/狗屁库.js
. -
The contents in the dicts got touched up.
- The bug where articles generated by the
english
dict contained{prefix_2}
was fixed. It was a complete oversight
- The bug where articles generated by the
-
Code is hugely cleaned up. JSDocs are added everywhere.
-
Added the following config options:
返回段落列表
能写少就写少
结段强制带标点符号
-
Instead of being a huge string, the
文章
variable in狗屁库
has become a list. Thanks to this change, bugs about thejapanese
dict was also fixed. -
If multiple instances of
{前面垫话}
and{后面垫话}
are seen in a名人名言
, they are now replaced by unique strings for each instance.
Merged pull requests
Apart from dependency updates, these are all parts of the refactors in this version.
- Split sentences by @Dobby233Liu in #114
- Refactor 2 by @Dobby233Liu in #124
- Another huge refactor by @Dobby233Liu in #137
Full Changelog: v1.2.0...v1.4.0