Felipe Martin
e5e1af2272
deps: update golang dependencies ( #915 )
2024-05-18 09:54:45 +02:00
dependabot[bot]
56fdc1292e
chore(deps): bump the all group across 1 directory with 4 updates ( #900 )
...
Bumps the all group with 4 updates in the / directory: [github.com/PuerkitoBio/goquery](https://github.com/PuerkitoBio/goquery ), [github.com/gin-contrib/requestid](https://github.com/gin-contrib/requestid ), [github.com/jmoiron/sqlx](https://github.com/jmoiron/sqlx ) and [modernc.org/sqlite](https://gitlab.com/cznic/sqlite ).
Updates `github.com/PuerkitoBio/goquery` from 1.9.1 to 1.9.2
- [Release notes](https://github.com/PuerkitoBio/goquery/releases )
- [Commits](https://github.com/PuerkitoBio/goquery/compare/v1.9.1...v1.9.2 )
Updates `github.com/gin-contrib/requestid` from 1.0.0 to 1.0.1
- [Release notes](https://github.com/gin-contrib/requestid/releases )
- [Changelog](https://github.com/gin-contrib/requestid/blob/master/.goreleaser.yaml )
- [Commits](https://github.com/gin-contrib/requestid/compare/v1.0.0...v1.0.1 )
Updates `github.com/jmoiron/sqlx` from 1.3.5 to 1.4.0
- [Release notes](https://github.com/jmoiron/sqlx/releases )
- [Commits](https://github.com/jmoiron/sqlx/compare/v1.3.5...v1.4.0 )
Updates `modernc.org/sqlite` from 1.29.6 to 1.29.8
- [Commits](https://gitlab.com/cznic/sqlite/compare/v1.29.6...v1.29.8 )
---
updated-dependencies:
- dependency-name: github.com/PuerkitoBio/goquery
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: all
- dependency-name: github.com/gin-contrib/requestid
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: all
- dependency-name: github.com/jmoiron/sqlx
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all
- dependency-name: modernc.org/sqlite
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: all
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-03 19:12:49 +02:00
Paco Esteban
02247b215b
refactor: allow specific sqlite engine for OpenBSD ( #780 )
...
* remove dependencies that use syscall.Syscall*
OpenBSD will be removing direct access to `syscall(2)` soon.
Shiori will stop working because of this, as some of its dependencies
rely heavily on the use of `syscall.Syscall*`, which ends up using
`syscall(2)`. This commit removes those dependencies by reverting back
to use github.com/mattn/go-sqlite3 instead of modernc.org/sqlite to deal
with the sqlite database backend.
* add ~emersion/go-sqlite3-fts5
* enable cgo to check ci
* fts5 build flag
* split sqlite logic using build flags
* disable cgo again
* added ci test for bsd systems
* remove openbsd ci
* Revert "remove openbsd ci"
This reverts commit f394148385
.
* fix makefile go_test_flags
---------
Co-authored-by: Felipe M <me@fmartingr.com>
Co-authored-by: Felipe Martin <812088+fmartingr@users.noreply.github.com>
2024-05-02 16:38:16 +02:00
Felipe Martin
31767f75e6
feat: new migrations system ( #876 )
...
* feat: new migration system
* use newFuncMigration
* database version -> database schema version
* column name
* use path instead of filepath for goembed
* simplified migrations, added backwards compatible migrations
2024-04-27 07:46:36 +02:00
Felipe Martin
86337a088b
deps: update go to 1.22.2 and all dependencies ( #889 )
2024-04-13 17:59:22 +02:00
Felipe Martin
595cb45a2c
fix: point go-epub go correct repository ( #842 )
2024-02-13 19:19:43 +01:00
Felipe Martin
0368f4eaab
fix: update go-epub to latest version to avoid filename errors on windows ( #840 )
...
* link to pr latest commit
* latest go-epub from main branch
2024-02-13 09:01:43 +01:00
Felipe Martin
1ee762a161
fix: fix problems that may be raised from a 1.5.5 upgrade ( #837 )
...
* add missing flag to deprecated serve command
* docs references to initial account
* modify shiori serve references
* update dependencies
* remove serve from shiori -h docs output
* remove migrated routes
* fix faq heading levels
* downgrade go-epub to 1.2.0
2024-02-08 09:26:33 +01:00
Felipe Martin
cc7c75116d
refactor: migrate bookmark static pages to new http server ( #775 )
...
* migrate bookmark content route to new http server
* new archive page
* remove unused go generate comment
* database mock
* utils cleanup
* unused var
* domains refactor and tests
* fixed secret key type
* redirect to login on ui errors
* fixed archive folder with storage domain
* webroot documentation
* some bookmark route tests
* fixed error in bookmark domain for non existant bookmarks
* centralice errors
* add coverage data to unittests
* added tests, refactor storage to use afero
* removed mock to avoid increasing complexity
* using deps to copy files around
* remove config usage (to deps)
* remove handler-ui file
2023-12-28 18:18:32 +01:00
Felipe Martin
fe6a306e9e
deps: upgrade ( #804 )
2023-12-27 12:41:25 +01:00
Felipe Martin
9746add224
deps: update go dependencies ( #777 )
2023-11-12 14:20:23 +01:00
dependabot[bot]
2c31048634
chore(deps): bump golang dependencies ( #746 )
...
Bumps the all group with 1 update: [modernc.org/sqlite](https://gitlab.com/cznic/sqlite ).
- [Commits](https://gitlab.com/cznic/sqlite/compare/v1.25.0...v1.26.0 )
---
updated-dependencies:
- dependency-name: modernc.org/sqlite
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-03 07:54:08 +02:00
Monirzadeh
9e91029e43
refactor: Migrate ePub generation to go-epub ( #679 )
2023-09-16 20:45:09 +02:00
Monirzadeh
3fb3f6075b
just use one dependency for uuid ( #736 )
2023-09-16 18:34:51 +02:00
Felipe Martin
9082f98f41
deps: upgrade to Go 1.21 ( #698 )
...
* go 1.21
* update dependencies
* Updated direct dependencies
* -count=1 to test flags
* group dependabot updates into one PR
* get swag version from go.mod
* show changes in swagger check
* go mod tidy
* updated swag generated files
* use go version from go.mod
* remove stray \
* proper grep
2023-09-16 08:20:55 +02:00
Felipe Martin
6f19c12c95
Start working on new REST API. Refactor logic in domains. ( #497 )
...
* added 404 template
* added auth domain
* added embed file for frontend
* added base config and dependencies
* added basic new http server
* added separated server command
* updated go modules
* removed modd file
* Added shortcut to send internal server error response
* Added JWT support to Auth Domain
* Added JWT support to API
* docs: added comments to response struct
* naming
* inline returns
* updated dependencies
* production logger
* bookmarks endpoint
* reverted old views api path
* frontend for api v1
* proper 404 error (not working atm)
* use response
* removed 404 html
* server error handler
* login and basic auth
* adjusted session duration
* properly retrieve tags
* properly delete bookmark
* cleanup
* archiver domain
* debug routes
* bookmark routes
* expiration by parameter
* move to logrus
* logout
* frontend cache
* updated dependencies
* http: migrated to gin
* linted
* Added version command
* unit tests, docs
* response test utils and tests
* remove logout handler
* auth
* createtag
* improved http test utilities
* assert message equals
* Remove 1.19 from test matrix
* moved api to v1 folder
* docs: contribute docs
* updated makefile
* updated usage docs
* warn in server command
* updaed docs with shiori version command
* Updated documentation
* deps: update
2023-07-17 14:30:18 +01:00
Felipe Martin
8e9324ae8b
deps: update to go 1.20 + dependencies. Fixes CI ( #628 )
...
* deps: update go1.20 and dependencies
* fix: goreleaser archives
* ci: removed unused notify irc action
* ci: updated workflow dependency versions
* fix: typo
2023-07-02 12:50:29 +02:00
Felipe Martin
85534b62f8
Update dependencies ( #616 )
...
* Added contribute docs for tests
* deps: update
* mariadb using healthcheck script
* Restored health retries to 5
2023-06-11 21:10:15 +02:00
Felipe Martin
f6f3faf130
deps: update direct deps ( #567 )
...
* deps: update direct deps
* test on 1.20
2023-02-05 11:19:53 +01:00
Felipe Martin
6b99e1910c
deps: up to date ( #552 )
2023-01-10 12:53:29 +01:00
dependabot[bot]
3e1d3cd3aa
chore(deps): bump modernc.org/sqlite from 1.19.5 to 1.20.2 ( #551 )
...
---
updated-dependencies:
- dependency-name: modernc.org/sqlite
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-10 12:47:06 +01:00
dependabot[bot]
e5846ca73b
chore(deps): bump github.com/go-sql-driver/mysql from 1.6.0 to 1.7.0 ( #541 )
...
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql ) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/go-sql-driver/mysql/releases )
- [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md )
- [Commits](https://github.com/go-sql-driver/mysql/compare/v1.6.0...v1.7.0 )
---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-10 12:46:38 +01:00
dependabot[bot]
27c2fc74be
chore(deps): bump modernc.org/sqlite from 1.19.4 to 1.19.5 ( #539 )
...
---
updated-dependencies:
- dependency-name: modernc.org/sqlite
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-30 12:12:55 +01:00
dependabot[bot]
54fc9399b3
chore(deps): bump github.com/gofrs/uuid ( #531 )
...
Bumps [github.com/gofrs/uuid](https://github.com/gofrs/uuid ) from 4.3.0+incompatible to 4.3.1+incompatible.
- [Release notes](https://github.com/gofrs/uuid/releases )
- [Commits](https://github.com/gofrs/uuid/compare/v4.3.0...v4.3.1 )
---
updated-dependencies:
- dependency-name: github.com/gofrs/uuid
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-10 08:52:45 +01:00
dependabot[bot]
48fb6f6395
chore(deps): bump modernc.org/sqlite from 1.19.3 to 1.19.4 ( #532 )
...
---
updated-dependencies:
- dependency-name: modernc.org/sqlite
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-10 08:52:33 +01:00
dependabot[bot]
9dac4bf1dc
chore(deps): bump modernc.org/sqlite from 1.19.2 to 1.19.3 ( #529 )
...
---
updated-dependencies:
- dependency-name: modernc.org/sqlite
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-04 21:26:01 +01:00
dependabot[bot]
278b4ce48d
chore(deps): bump github.com/spf13/cobra from 1.6.0 to 1.6.1 ( #528 )
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Commits](https://github.com/spf13/cobra/compare/v1.6.0...v1.6.1 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-04 21:25:49 +01:00
dependabot[bot]
00ef531be8
chore(deps): bump modernc.org/sqlite from 1.19.1 to 1.19.2 ( #521 )
...
Bumps [modernc.org/sqlite](https://gitlab.com/cznic/sqlite ) from 1.19.1 to 1.19.2.
- [Release notes](https://gitlab.com/cznic/sqlite/tags )
- [Commits](https://gitlab.com/cznic/sqlite/compare/v1.19.1...v1.19.2 )
---
updated-dependencies:
- dependency-name: modernc.org/sqlite
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-28 09:09:45 +02:00
Felipe Martin Garcia
4ea81a446a
chore(deps): updated go and github actions dependencies ( #511 )
...
* deps(go): updated dependencies
* deps(github_actions): updated dependencies
2022-10-12 00:10:55 +02:00
Felipe Martin Garcia
05fee53bd0
fix: saving bookmarks inconsistencies ( #500 )
...
* chore: updated go-migrate dependencies
* fix: specify if we're saving bookmarks expecting a creation
up until now the SaveBookmarks method was doing some "magic" to do
"upserts" on the databases, but consistency between engines was scarce
and not knowing if we were expecting saving a new bookmark or updating
an existing one was leading to errors and inconsistencies in logic all
around the place. Now we need to specify a creation boolean when
saving and a differnt query will be make (INSERT vs UPDATE).
* fix(api): using incorrect bookmark for content downlaod
* test(db): added test pipeline for databases
Added functions that will share logic among the engines and will be
called on fresh databases on each test run
* dev: added basic docker-compose for development
* chore: uncommented tests
* ci(test): added mysql service
* typo
* test(mysql): select database after reset
* fix(mysql): ignore empty row errors when parsing tags
* fix(mysql): handle insert errors
* chore: added mysql variables to compose
* ci: explicit mysql service port exposed
2022-10-11 23:47:38 +02:00
Felipe Martin Garcia
dc73cd825b
fix(psql): save bookmarks not using passed bookmark id for the insert ( #484 )
...
* fix(psql): get last inserted id from insert query
book.ID was not being used, so inserts were failing.
the check for book.ID was removed and it is filled with the returning
id from the insert query
* test(psql): added save bookmarks simple test
* ci: added postgresql service
* fix(typo): QueryRow -> QueryRowContext
* ci: explicit postgresql port
* ci(test): 1.19 only
* ci: bind psql to localhost
* test(pg): migrate before test
* test(pg): migrate database before test
* fix(pg): check no rows error on get query
2022-10-09 17:05:30 +02:00
Felipe Martin Garcia
3deeda7151
feat: upgrade to go 1.19 ( #469 )
...
* feat: upgrade to go 1.19
* fix: ioutil deprecation notice
2022-08-11 14:22:10 +02:00
Felipe Martin Garcia
7394b1060a
chore: update go dependencies ( #424 )
2022-05-05 21:15:52 +02:00
hulb
8732fd7b6d
implement migration for mysql & postgres ( #422 )
2022-05-03 23:30:28 +02:00
Felipe Martin Garcia
81d52a2e24
feat: sqlite migrations ( #398 )
...
- Moved migrations from code to SQL files
- Using golang-migrate/v4
- Added a new CLI command: migrate
2022-03-26 08:33:57 +01:00
n8225
f1c98a8e98
Update Dependencies and Replace mattn/go-sqlite with modernc.org/sqlite ( #345 )
...
* No more CGO
* Update all dependencies to current
* Only test against go 1.17.
2022-02-11 13:59:49 +01:00
Radhi Fadlillah
a3e1563dff
Move warc to another package
2019-10-09 20:10:12 +07:00
Radhi Fadlillah
7dbb63d873
Update go-readability
2019-08-10 08:15:15 +07:00
Radhi Fadlillah
106266e87d
Add path generator
2019-08-06 16:24:05 +07:00
Radhi Fadlillah
4e38387170
Add initial archiver
2019-06-09 14:54:07 +07:00
Radhi Fadlillah
fa938b9941
Update modules
2019-05-31 22:42:37 +07:00
Radhi Fadlillah
61bd8244a6
Initial new web interfaces
2019-05-27 17:01:53 +07:00
Radhi Fadlillah
c773f5198f
Update go-readability
2019-05-23 11:29:59 +07:00
Radhi Fadlillah
4ab1253f8c
Implement logic for import cmd
2019-05-23 09:22:47 +07:00
Radhi Fadlillah
ed2b6b0740
Implement logic for open cmd
2019-05-22 16:47:20 +07:00
Radhi Fadlillah
9a9baf9f91
Implement logic for update cmd
2019-05-22 16:13:52 +07:00
Radhi Fadlillah
659a3291d8
Implement logic for add and print cmd
2019-05-21 23:24:11 +07:00
Radhi Fadlillah
1e099fbd27
Restructure project directories
2019-05-21 10:31:40 +07:00
Radhi Fadlillah
1b75fc1ead
Initial go module usage
2019-05-21 09:57:28 +07:00