Skip to content

Releases: Dobby233Liu/node-bullshit-generator

v1.4.1

05 Jul 07:44
b0390d9
Compare
Choose a tag to compare

Haha guys a bugfix release.

  • Dependabot now updates every single dependency that can be found in this repo.
  • Fix broken CodeQL workflow.
  • Introduced VS Code project configuration to enforce Prettier.
  • Fixed CDNs using lib/狗屁库.js instead of dist/狗屁库.js or dist/狗屁库.min.js.
  • Remove useless @babel/plugin-proposal-class-properties and @babel/plugin-transform-classes plugins from dev dependencies and babelrc.
  • Build script runs clean before building bundles.
  • Included Dictionaries docs page now has license info for data sources, properly links to the data sources (for the Read the Docs mirror), and is now included in the NPM package.
  • Fixed docs' navigation bar.
  • Added more JSDocs.
  • Added/changed content in the dicts, and erased all qwas982 content due of copyright concerns.
  • Fixed CLI using node's full path as the theme for the generated article.
  • The 结段强制带标点符号 option was renamed to 文章结尾强制带标点符号.
  • Fixed potential Cannot read properties of undefined crash when running the code generated by Babel.
  • When the "generating phrase" buffer contains new line character(s), the article generation code will no longer erase the current actual generating phrase from the buffer.

Full Changelog: v1.4.0...v1.4.1

v1.4.0

02 Jul 09:42
1557112
Compare
Choose a tag to compare

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

v1.2.0

15 Aug 09:13
Compare
Choose a tag to compare
1.2.0

v1.1.1

02 Jul 23:33
Compare
Choose a tag to compare
1.1.1

v1.1.0

03 May 01:16
e5b5771
Compare
Choose a tag to compare
  • New beautifier style
  • Modified directory structure
  • Dict specifietion now uses a single object (API breaking, see source code for example on new format)
    • Added 配置.js under dict directorys, contains pre-filled data for the dict parameter
  • Dicts has changed
    • Added new data in default-plus
    • Added internet-industry-terms dict from the corresponding generator
    • Modified qwas982 dict to be slightly more clean
  • Scrapped some unnesscary options
  • Cleaned source code/Fixed some bugs
    • Renamed variables
    • Merged functions in 合成
    • 常用.合并对象(...) is no longer unnesscarliy complex
    • 随机常用 is now static and supports only Math.random
    • Options/dicts parameter now works correctly
    • The buffer is now cleared correctly
    • etc.
  • Removed LCG (API breaking)
  • etc. (I really have fish memory)

Docs are still in the making(TM)