Commit Graph

30 Commits

Author SHA1 Message Date
ᴍᴏᴏɴD4ʀᴋ ad020cf135 chore: downgrade golang version to 1.20, support Windows 7. (#435)
* chore: downgrade golang version to 1.20, support windows 7

* chore: Update dependencies for Go project.

- Update dependencies in go.sum
- Improvements and optimizations in various files
- Bug fixes and error handling enhancements

* chore: Update modernc.org/sqlite library versions in go.mod and go.sum files

- Update version of `modernc.org/sqlite` to `v1.31.1` in `go.mod` and `go.sum` files
- Update module hash in `go.sum` file for `modernc.org/sqlite`
- Ensure consistency between `go.mod` and `go.sum` files in relation to `modernc.org/sqlite` version

* chore: replace log/slog with standard logger (#436)

* chore: replace log/slog with standard logger

* chore: Update Go dependencies and versions

- Update Go version from `1.22.5` to `1.20` and other dependencies
- Update critical dependencies to latest versions
- Ensure compatibility with new versions of dependencies

* chore: Optimize dependency management in workflows

- Update build and lint workflows to use `go mod tidy` for getting dependencies
- Change modules download mode to `'mod'` in linters configuration
- Add step to get dependencies in lint workflow

* refactor: Update dependencies and refactor Chromium key deletion logic

- Update `modernc.org/sqlite` to `v1.31.1` in `go.mod` and `go.sum`
- Increase version number to `0.5.0` in `cmd/hack-browser-data/main.go`
- Refactor and update logic for filtering and copying items in `browser/chromium/chromium.go`

* Improve logging functionality and data type conversion

- Add `String()` method to `DataType` enum in types.go
- Update log level to Debug in logger_test.go
- Set log level to Debug in `TestLoggerDebug` and `TestLoggerDebugf` functions
2024-10-22 13:01:13 +08:00
ᴍᴏᴏɴD4ʀᴋ 271e052481 fix: Improve error handling and fix wrong compress dir for windows (#367) (#368)
* fix: Improve error handling and fix wrong compress dir for windows
* refactor: Refactor fileutil package for pass linter
2024-07-17 22:32:29 +08:00
ᴍᴏᴏɴD4ʀᴋ c9beee2662 docs: Update the document version to 0.4.6 (#363)
* docs: Update README with version `0.4.6` and improvements
2024-07-16 12:01:21 +08:00
ᴍᴏᴏɴD4ʀᴋ e48f35cfd3 feat: refactor logger to standard library (#280)
* refactor: Refactor logging to use structured slog package.

- Remove `gookit` dependencies from `go.sum`
- Improve error logging in multiple packages by replacing `log` with `log/slog`
- Update dependencies in `go.mod`
- Add new `logger` package with test cases
- Refactor logging statements in multiple packages to use `slog` instead of `log`
- Change logging format and level in multiple packages for better structured logging

* refactor: Refactor logger package and add handler interface

- Refactor logger package
- Rename `defaultHandler` to `DefaultLogger`
- Move `ReplaceAttr` function to `Logger` struct
- Implement `LogHandler` struct with `slog.Handler` interface
- Add new `Logger` methods for configuration
- Add `SetMaxLevel`, `SetJSONHandler`, `SetTextHandler`, `SetOutput`, `SetVerbose`, `SetReplaceAttrFunc`
- Add verbose flag to `cmd/hack-browser-data/main.go` to increase logging

* refactor: Refactor logger package to use simplified handler initialization.

- Refactor logger package to use Default instead of DefaultLogger
- Update `NewHandler` method to correctly reference `Default` logger and simplify handler initialization
- Update tests for logger to reflect changes in Default usage
- Rename `DefaultLogger` to `Default` and update comments to better reflect its purpose
- Update function calls in hack-browser-data main.go to reflect logger package updates

* refactor: Refactor logging in Chromium implementation

Refactor logging and simplify decryption in chromium files
- Replace logger package import with shared slog package
- Change logging messages to use slog instead of logger
- Simplify decryption process by removing first 5 characters of encrypted key
- Refactor error logging in linux file to use shared slog package
- Replace string concatenation with formatted string in linux error message
2024-01-16 14:06:13 +08:00
moonD4rk 5a34d1c176 chore: Downgrade version number and remove unused flag
Refactor version number changes and remove unused flag in CLI

- Downgrade version number from `0.4.7` to `0.4.5` in main.go and README files
- Remove `HelpCommand` flag from `cli.App`
- Update `Github Link` in usage text of hack-browser-data CLI
2024-01-09 18:10:14 +08:00
moonD4rk 23daf093b8 chore: Update version number to 0.4.7 in README and main.go files
- Update version number to `0.4.7` in `README` and `README_ZH`
- Update version number to `0.4.7` in `cmd/hack-browser-data/main.go`
2024-01-09 18:10:14 +08:00
stevenlele 038e97e2dc chore: fix typos (#232) 2024-01-09 18:10:14 +08:00
Andrii Ursulenko ab4d3e14db fix: nil browsing data in case error and walkdir instead of walk (#229)
* fix: nil browsing data in case error

Signed-off-by: Andrii Ursulenko <a.ursulenko@gmail.com>

* fix: ignore walk error, use walkdir instead of walk

---------

Signed-off-by: Andrii Ursulenko <a.ursulenko@gmail.com>
Co-authored-by: Andrii Ursulenko <a.ursulenko@gmail.com>
2023-07-10 17:53:13 +08:00
moonD4rk 0a7f19ab91 refactor: lowercase library module name 2023-06-04 13:47:43 +08:00
moonD4rk 4b7ad4d505 feat: add is export full data option 2023-03-11 17:51:40 +08:00
moonD4rk cc4edc5cb6 refactor: initial default logger 2023-03-10 15:58:10 +08:00
moonD4rk b0cb59ec2c chore: update version flag 2023-03-10 14:54:47 +08:00
moonD4rk b65d3186c4 chore: update project layout 2023-03-10 14:52:26 +08:00
yuxiaojun bec3e3a1b0 fix: the bug that the command line Usage prompt is incomplete
The full prompt is "password|bookmark|cookie|history|credit card|download|localStorage|extension"

Signed-off-by: yuxiaojun <yuxiaojun@uniontech.com>
2023-01-05 15:06:48 +08:00
moonD4rk 01b2bc582b fix: handle err run binary failed 2022-10-30 12:58:35 +08:00
ᴍᴏᴏɴD4ʀᴋ 9976fe0ea1 fix: init log error 2022-10-24 14:19:29 +08:00
ᴍᴏᴏɴD4ʀᴋ b52627afc7 Merge branch 'fix/logbug' into master 2022-10-24 14:04:12 +08:00
moonD4rk 877fcd2c84 refactor: add provider software folder 2022-10-24 13:42:31 +08:00
carr0t2 0f17a1d7b6 fix: log error 2022-10-21 13:27:54 +08:00
ᴍᴏᴏɴD4ʀᴋ 6d710c20e1 refactor: refactor package with gofumpt 2022-06-05 14:51:37 +08:00
ᴍᴏᴏɴD4ʀᴋ 353503f90f feat: support extension for firefox 2022-04-30 00:37:23 +08:00
ᴍᴏᴏɴD4ʀᴋ d6cb101512 refactor: remove log from fileutil 2022-04-29 21:30:14 +08:00
ᴍᴏᴏɴD4ʀᴋ 2452b2670a feat: update to v0.4.1, support local storage 2022-04-19 21:35:25 +08:00
ᴍᴏᴏɴD4ʀᴋ f5c3e6da5e style: add more debug log 2022-04-19 19:35:30 +08:00
ᴍᴏᴏɴD4ʀᴋ aa3326f1a3 feat: update to v0.4.0, based by generics 2022-04-18 02:14:32 +08:00
ᴍᴏᴏɴD4ʀᴋ 04e620e54c refactor: output browsing data package 2022-04-18 00:47:39 +08:00
ᴍᴏᴏɴD4ʀᴋ c9feef66ab feat: replace log with stdout color 2022-04-17 16:42:36 +08:00
ᴍᴏᴏɴD4ʀᴋ f728d3201b feat: support profile path cmd options 2022-04-17 16:42:36 +08:00
ᴍᴏᴏɴD4ʀᴋ 9cd2f61f1b feat: add cli options 2022-04-17 16:42:36 +08:00
ᴍᴏᴏɴD4ʀᴋ 1d3b7bd214 feat: add command line and log 2022-04-17 16:42:36 +08:00