Skip to content

v1.4.0

Compare
Choose a tag to compare
@Dobby233Liu Dobby233Liu released this 02 Jul 09:42
· 88 commits to master since this release
1557112

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 than js-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 to bin/cli.js.

  • src/bullshit.js was added due of weird issue related to the new build script. It is just a shortcut to src/狗屁库.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
  • 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 the japanese 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.

Full Changelog: v1.2.0...v1.4.0