mirror of
https://github.com/kjanat/articulate-parser.git
synced 2026-01-16 08:22:09 +01:00
Bumps the application version to 1.0.0, signaling the first stable release. This version consolidates several new features and breaking API changes. This commit also includes various code quality improvements: - Modernizes tests to use t.Setenv for safer environment variable handling. - Addresses various linter warnings (gosec, errcheck). - Updates loop syntax to use Go 1.22's range-over-integer feature. BREAKING CHANGE: The public API has been updated for consistency and to introduce new features like context support and structured logging. - `GetSupportedFormat()` is renamed to `SupportedFormat()`. - `GetSupportedFormats()` is renamed to `SupportedFormats()`. - `FetchCourse()` now requires a `context.Context` parameter. - `NewArticulateParser()` constructor signature has been updated.
26 lines
845 B
Go
26 lines
845 B
Go
// Package version provides version information for the Articulate Parser.
|
|
// It includes the current version, build time, and Git commit hash.
|
|
package version
|
|
|
|
// Version information.
|
|
var (
|
|
// Version is the current version of the application.
|
|
// Breaking changes from 0.4.x:
|
|
// - Renamed GetSupportedFormat() -> SupportedFormat()
|
|
// - Renamed GetSupportedFormats() -> SupportedFormats()
|
|
// - FetchCourse now requires context.Context parameter
|
|
// - NewArticulateParser now accepts logger, baseURL, timeout
|
|
// New features:
|
|
// - Structured logging with slog
|
|
// - Configuration via environment variables
|
|
// - Context-aware HTTP requests
|
|
// - Comprehensive benchmarks and examples
|
|
Version = "1.0.0"
|
|
|
|
// BuildTime is the time the binary was built.
|
|
BuildTime = "unknown"
|
|
|
|
// GitCommit is the git commit hash.
|
|
GitCommit = "unknown"
|
|
)
|