Releases: j178/leetgo
v1.3.5
v1.3.4
Changelog
Features
Bug fixes
Others
- 46b4559: chore(deps): bump github.com/sashabaranov/go-openai from 1.9.5 to 1.12.0 (#203) (@dependabot[bot])
- e326801: chore(deps): bump github.com/AlecAivazis/survey/v2 from 2.3.6 to 2.3.7 (#204) (@dependabot[bot])
- 372b2dc: chore(deps): bump github.com/charmbracelet/bubbletea (#205) (@dependabot[bot])
v1.3.3
v1.3.2
v1.3.1
v1.3
Changelog
Features
- fe23a4e: feat: improve any order detection (@j178)
- 3882fe6: feat: improve logging and color sytle (#198) (@j178)
- 041f6e9: feat: add
--skip-editor
toleetgo pick
(@j178) - 1244c17: feat: add leetgo version to generated file (@j178)
- 3c97c3c: feat: support subgroup of files (#200) (@j178)
Bug fixes
- d4180c2: fix: abort if global config not found (#196) (@j178)
- 4e5cdd0: fix: question of date (
today-1
) not work (#199) (@j178) - 555cdc3: fix: editor substitute arguments (@j178)
- 2f2aef8: fix: don't run preRun for auto command (@j178)
Others
v1.2
v1.1
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
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
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
- bb8469a: feat: support float result compare (#177) (@j178)
- 67e8f2d: feat: enhanced judger (#178) (@j178)
- c749bf7: feat: make
editor.args
andcode.cpp.cxxflags
single string (#174) (@j178)
Bug fixes
- 816f307: fix: handle files ends with \r\n on Windows (@j178)
- c6487bc: fix: detect question editor type (@j178)
- a74997a: fix: add editorType when requesting questionData (@j178)
- f677811: fix: remove timeout from leetgo fix (@j178)
- 1956d6c: fix(rust): add return type conversion (#176) (@j178)
- a31ff86: fix: manually fix some metadata (#170) (@j178)
Others
- dba162f: chore(rust): bump version (@j178)
- cfe6444: chore: add more sub/super script letters (@j178)
- 72b14e2: chore: cleanup (@j178)
- a0b7239: chore(deps): bump github.com/j178/leetgo/testutils/go (#180) (@dependabot[bot])
- 084cf6e: chore(deps): bump github.com/charmbracelet/bubbletea (#183) (@dependabot[bot])
- 4fce0e6: chore(deps): bump github.com/charmbracelet/log from 0.2.1 to 0.2.2 (#182) (@dependabot[bot])
- d5f6d75: chore(deps): bump github.com/zalando/go-keyring from 0.2.2 to 0.2.3 (#179) (@dependabot[bot])
- 303c1df: chore(deps): bump github.com/pelletier/go-toml/v2 from 2.0.7 to 2.0.8 (#181) (@dependabot[bot])
- abb3045: chore: tweak config comments (@j178)