From 4f19a82f216f706e51cfa5c37a95c29649a78830 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Wed, 8 Nov 2023 09:26:09 +0900 Subject: [PATCH] feat!: Remove keywordPattern backward compatibility --- denops/ddc/ddc.ts | 19 ------------------- doc/ddc.txt | 3 +++ 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/denops/ddc/ddc.ts b/denops/ddc/ddc.ts index 682a993..581995d 100644 --- a/denops/ddc/ddc.ts +++ b/denops/ddc/ddc.ts @@ -1162,16 +1162,6 @@ async function callSourceOnEvent( } try { - if (source.apiVersion < 5) { - // NOTE: It is for backward compatibility. - // Convert keywordPattern - // deno-lint-ignore-file - options.keywordPattern = await convertKeywordPattern( - denops, - sourceOptions.keywordPattern, - ); - } - await source.onEvent({ denops, context, @@ -1245,15 +1235,6 @@ async function callSourceGetCompletePosition( sourceParams: BaseSourceParams, ): Promise { try { - if (source.apiVersion < 5) { - // NOTE: It is for backward compatibility. - // Convert keywordPattern - options.keywordPattern = await convertKeywordPattern( - denops, - sourceOptions.keywordPattern, - ); - } - return await source.getCompletePosition({ denops, context, diff --git a/doc/ddc.txt b/doc/ddc.txt index ef804cf..48d4b43 100644 --- a/doc/ddc.txt +++ b/doc/ddc.txt @@ -1620,6 +1620,9 @@ https://github.com/Shougo/ddc-ui-pum ============================================================================== COMPATIBILITY *ddc-compatibility* +2023.11.08 +* Remove keywordPattern backward compatibility. + 2023.07.08 * Vim 9.0.1276+ or neovim 0.8+ is required to support the latest MacVim.