Skip to content

Releases: j178/leetgo

v1.3.5

25 Jul 02:43
v1.3.5
a0f62ac
Compare
Choose a tag to compare

Changelog

Bug fixes

  • db4d42a: fix: contest question html not converted to markdown (@j178)

Others

v1.3.4

24 Jul 02:52
v1.3.4
e72e521
Compare
Choose a tag to compare

Changelog

Features

Bug fixes

Others

v1.3.3

26 Jun 10:09
v1.3.3
dce5092
Compare
Choose a tag to compare

Changelog

Features

  • 2961fec: feat: support multiline output result parsing (@j178)

Bug fixes

Others

v1.3.2

15 Jun 07:59
v1.3.2
f07e68c
Compare
Choose a tag to compare

Changelog

Bug fixes

v1.3.1

14 Jun 13:31
v1.3.1
92f1dd0
Compare
Choose a tag to compare

Changelog

Features

Bug fixes

v1.3

14 Jun 09:58
v1.3
2f2aef8
Compare
Choose a tag to compare

Changelog

Features

Bug fixes

Others

v1.2

08 Jun 10:08
v1.2
88d4143
Compare
Choose a tag to compare

Changelog

Features

Bug fixes

Others

v1.1

07 Jun 12:06
v1.1
9448dd3
Compare
Choose a tag to compare

Breaking change in v1.1

Providing LeetCode cookies and password in config file is no longer supported. Previously you can provide cookies or password in the config file:

leetcode:
  credentials:
    from: cookies
    session: xxx
    csrftoken: xxx

Now, you should provide them through env variables instead:

export LEETCODE_SESSION=xxx LEETCODE_CSRFTOKEN=xxx
leetcode:
  credentials:
    from: cookies

or

export LEETCODE_USERNAME=xxx LEETCODE_PASSWORD=xxx
leetcode:
  credentials:
    from: password

Changelog

Features

  • feat!: remove credentials from config file, read from env vars instead by @j178 in #190
  • feat: support {{.Folder}} in editor arguments by @j178 in #185
  • feat: add LEETGO_HOME by @j178 in #192

Bug fixes

  • fix: test whether user is signed in by @j178 in #191

Others

  • chore(deps): bump github.com/k3a/html2text from 1.1.0 to 1.2.1 by @dependabot in #189
  • chore(deps): bump github.com/mattn/go-sqlite3 from 1.14.16 to 1.14.17 by @dependabot in #188
  • chore(deps): bump github.com/charmbracelet/bubbles from 0.15.0 to 0.16.1 by @dependabot in #187
  • chore(deps): bump github.com/spf13/viper from 1.15.0 to 1.16.0 by @dependabot in #186

Full Changelog: v1.0...v1.1

v1.0

30 May 07:16
v1.0
abb3045
Compare
Choose a tag to compare

Breaking changes in 1.0

Use single string for command arguments

We changed code.cpp.cxxflags and editor.args from array of string to a single string. If you upgraded from an older version, you will see error like this:

FATA unmarshal config failed: 2 error(s) decoding:

* 'code.cpp.cxxflags' expected type 'string', got unconvertible type '[]interface {}', value: '[-O2 -std=c++17]'
* 'editor.args' expected type 'string', got unconvertible type '[]interface {}', value: '[]'

You can manually fix this by changing code.cpp.cxxflags and editor.args to a signle string in ~/.config/leetgo/config.yaml, or you can use
leetgo init -f -t cn to regenerate the global configuration.

Must specify opening files in custom editor arguments

For example:

editor:
  use: custom
  command: subl.exe
  args: ""

In previous version, leetgo will open the generated code file using subl.exe. But in 1.0, you must specify which file to open, you can use
{{.CodeFile}}, {{.TestFile}}, {{.DescriptionFile}} or {{.TestCasesFile}} in args to open the specific file. Additionly, you can use {{.Files}} to open all generated files.

editor:
  use: custom
  command: subl.exe
  args: "{{.Files}}"

Changelog

Features

Bug fixes

Others

v1.0-beta.6

14 May 06:42
e5767ca
Compare
Choose a tag to compare

Changelog

Bug fixes