Skip to content

feat!: remove deprecated features for 2.0.0#25

Merged
zuqini merged 1 commit into
mainfrom
remove-deprecated-features
Jun 3, 2026
Merged

feat!: remove deprecated features for 2.0.0#25
zuqini merged 1 commit into
mainfrom
remove-deprecated-features

Conversation

@zuqini

@zuqini zuqini commented May 19, 2026

Copy link
Copy Markdown
Owner

Summary

Removes every deprecated and already-removed feature ahead of the 2.0.0 release, along with the supporting deprecation infrastructure.

Removed Replacement
opts.confirm defaults.confirm
opts.disable_vim_loader performance.vim_loader
opts.plugins_dir { import = 'dir' } in spec
opts.cmd_prefix + legacy :Z* commands :ZPack <subcommand>
opts.auto_import already a no-op; notice dropped
zpack.add() already a no-op; function dropped

With nothing left to notify, zpack.deprecation is now unused and is deleted, state.deprecations is removed, and :checkhealth zpack no longer reports deprecated options.

Changes

  • init.lua — drop deprecated opts.* handling, the cmd_prefix/legacy_prefix plumbing, the state.deprecations recording loop, the M.add stub, and the @deprecated fields on zpack.Config.
  • commands.lua — delete the legacy commands section (LEGACY_SUFFIXES, M.setup_legacy).
  • health.lua — drop the deprecation-reporting block from check_config.
  • validate.lua — drop the legacy-option type checks; update doc comment.
  • state.lua — remove the deprecations field.
  • deprecation.lua — deleted (fully unused).
  • Tests — delete deprecation_test.lua and cmd_prefix_test.lua; trim deprecation-specific cases from setup_test.lua, health_test.lua, validate_test.lua; simplify helpers.delete_zpack_commands.
  • Docs — drop "deprecated options" mentions from the :checkhealth description in README.md and doc/zpack.txt.

⚠️ Breaking change

The options and commands listed above no longer work. Users must migrate to the replacements shown before upgrading to 2.0.0.

Test plan

  • nvim -u NONE -l tests/busted.lua — 364 passed / 0 failed
  • luacheck lua/ tests/ — 0 warnings / 0 errors
  • lua-language-server --check — no new diagnostics (pre-existing count unchanged)

Closes zpack_nvim-prf.

Remove every deprecated and already-removed feature ahead of the 2.0.0
release, along with the supporting deprecation infrastructure:

- opts.confirm            -> defaults.confirm
- opts.disable_vim_loader -> performance.vim_loader
- opts.plugins_dir        -> { import = 'dir' } in spec
- opts.cmd_prefix and the legacy :Z* commands -> :ZPack <subcommand>
- opts.auto_import        (already a no-op; notice dropped)
- zpack.add()             (already a no-op; function dropped)

With nothing left to notify, zpack.deprecation is now unused and is
deleted, state.deprecations is removed, and :checkhealth zpack no
longer reports deprecated options.

BREAKING CHANGE: the options and commands listed above no longer work.
Migrate to the replacements shown before upgrading to 2.0.0.
@zuqini zuqini force-pushed the remove-deprecated-features branch from 3b8b069 to 30de216 Compare June 3, 2026 22:02
@zuqini zuqini merged commit 4681a74 into main Jun 3, 2026
4 checks passed
@zuqini zuqini deleted the remove-deprecated-features branch June 3, 2026 22:16
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.

1 participant