kibana/docs/developer/plugin-api-changes/plugin-api-changes.asciidoc
gchaps e629bb277c
[DOCS] Adds plugin API changes doc (#122388)
* [DOCS] Adds plugin API changes doc

* Update docs/developer/plugin-api-changes/plugin-api-changes.asciidoc

* Update docs/developer/plugin-api-changes/plugin-api-changes.asciidoc

* Update docs/developer/plugin-api-changes/plugin-api-changes.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update plugin-api-changes.asciidoc

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2022-01-19 13:23:47 -08:00

53 lines
1.3 KiB
Text

[[plugin-api-changes]]
== Plugin API changes in {minor-version}
++++
<titleabbrev>Plugin API changes</titleabbrev>
++++
This page discusses the plugin API changes that you need to be aware of when migrating
your application to {kib} {minor-version}.
[[breaking_plugin_v8.0.0_113950]]
.Client upgraded to v8.0
[%collapsible]
====
{es} service provides the new version of the `elasticsearch-js` library.
https://github.com/elastic/elasticsearch-js/issues/1542[This issue]
lists all changes, including the breaking changes.
Refer to https://github.com/elastic/kibana/pull/113950[#113950]
====
[[breaking_plugin_v8.0.0_112505]]
.Support for deprecated `kbn-system-api` header removed
[%collapsible]
====
{kib} removed support for the deprecated `kbn-system-api` header.
Use the `asSystemRequest` flag instead:
```js
const response = await core.http.get({
path: '/url',
asSystemRequest: true,
});
```
Refer to https://github.com/elastic/kibana/pull/112505[#112505]
====
[[breaking_plugin_v8.0.0_82643]]
.`IndexPatterns.create` removed
[%collapsible]
====
`IndexPatterns.create` has been removed in favor of `IndexPatterns.createAndSave`
to enforce saving index patterns. This eliminates the
creation of an index pattern that can't be referenced by other saved objects or {kib} apps.
Refer to https://github.com/elastic/kibana/pull/82643[#82643]
====