Skip to content

Chore/ferret v2.0.0 alpha.30#54

Merged
ziflex merged 2 commits into
mainfrom
chore/ferret-v2.0.0-alpha.30
Jul 8, 2026
Merged

Chore/ferret v2.0.0 alpha.30#54
ziflex merged 2 commits into
mainfrom
chore/ferret-v2.0.0-alpha.30

Conversation

@ziflex

@ziflex ziflex commented Jul 8, 2026

Copy link
Copy Markdown
Member

This pull request updates dependencies and extends the application's built-in modules to add new document and database capabilities. The main focus is on supporting PDF, XLSX, and PostgreSQL, along with updating several existing modules to newer versions.

Dependency and Module Updates:

Dependency upgrades and additions:

  • Updated several github.com/MontFerret/contrib modules and github.com/MontFerret/ferret/v2 to newer versions in go.mod, ensuring access to bug fixes and new features.
  • Added new indirect dependencies for PDF, XLSX, and PostgreSQL support, such as github.com/ledongthuc/pdf, github.com/xuri/excelize/v2, and github.com/jackc/pgx/v5.

New built-in module support:

  • Registered new document modules (pdf, xlsx) and a new database module (postgres) in the runtime by updating pkg/runtime/builtin_modules.go. This allows scripts to directly use PDF, XLSX, and PostgreSQL features. [1] [2] [3] [4]

Minor code simplification:

  • Simplified the artifact.Marshal call in pkg/build/artifact.go by removing the unused artifact.Options{} parameter.

Copilot AI review requested due to automatic review settings July 8, 2026 16:21
@ziflex
ziflex merged commit 4c621bc into main Jul 8, 2026
9 checks passed
@ziflex
ziflex deleted the chore/ferret-v2.0.0-alpha.30 branch July 8, 2026 16:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR bumps Ferret v2 and multiple contrib modules, and wires new built-in runtime modules so Ferret CLI scripts can use additional document/database capabilities (PDF, XLSX, PostgreSQL). It also updates artifact serialization to match the updated Ferret API.

Changes:

  • Update github.com/MontFerret/ferret/v2 to v2.0.0-alpha.30 and refresh several contrib module versions.
  • Register new built-in modules in the builtin runtime: db/postgres, document/pdf, and document/xlsx.
  • Simplify artifact serialization callsite to artifact.Marshal(program).

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
pkg/runtime/builtin_modules.go Registers new built-in modules (postgres/pdf/xlsx) and adds a document module initializer group.
pkg/build/artifact.go Updates artifact serialization call to match the new artifact.Marshal signature.
go.mod Bumps Ferret/contrib module versions and adds new dependencies needed by the new built-in modules.
go.sum Records updated module checksums after the dependency upgrade (including new transitive deps).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 84 to 88
func dbMods(_ Options) ([]module.Module, error) {
return []module.Module{
postgres.New(),
sqlite.New(),
}, nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants