Skip to content

Version/1.3#18

Merged
lupodevelop merged 3 commits intomainfrom
version/1.3
Jan 14, 2026
Merged

Version/1.3#18
lupodevelop merged 3 commits intomainfrom
version/1.3

Conversation

@lupodevelop
Copy link
Owner

This pull request deprecates a large number of public APIs in the internal str/core module, as part of the transition to a unified str module planned for version 2.0.0. All affected functions now include @deprecated annotations, and users are encouraged to migrate to the unified API when it becomes available. The public str.gleam module remains the recommended entry point and is not deprecated. Deprecation warnings may appear during builds and tests to signal these upcoming changes.

Deprecation of internal string APIs:

Documentation update:

  • Updated CHANGELOG.md to document the deprecation of internal string APIs and to inform users about the transition plan and the appearance of deprecation warnings.

Added @deprecated annotations to all public functions in str/core.gleam, str/extra.gleam, and str/tokenize.gleam, indicating they will be removed in str 2.0 and recommending use of the unified `str` module when available.
Documented the deprecation of public APIs in internal modules (`str/core`, `str/extra`, and `str/tokenize`) in preparation for 2.0.0. Added notes about deprecation warnings and clarified that the public `str.gleam` module remains recommended.
Prevents benchmark results from being tracked by git by adding 'benchmark/results/' to the .gitignore file.
Copilot AI review requested due to automatic review settings January 14, 2026 16:51
@lupodevelop lupodevelop merged commit 9f7f691 into main Jan 14, 2026
5 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request deprecates all public APIs in the internal str/core, str/extra, and str/tokenize modules in preparation for consolidating them into a unified str module in version 2.0.0. The main str.gleam module remains the recommended entry point and is not deprecated.

Changes:

  • Added @deprecated annotations to all public functions across str/core, str/extra, and str/tokenize modules
  • Updated CHANGELOG.md to document the deprecation strategy and inform users about expected warnings
  • Added benchmark/results/ to .gitignore for future benchmarking artifacts

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/str/core.gleam Added deprecation annotations to all 81 public functions in the core string utilities module
src/str/extra.gleam Added deprecation annotations to all 13 public functions for extended string operations
src/str/tokenize.gleam Added deprecation annotations to both public tokenizer functions (chars and chars_stdlib)
CHANGELOG.md Documented version 1.3.0 release with deprecation notices and migration guidance
.gitignore Added benchmark/results/ entry for future benchmarking artifacts

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

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