kibana/typings
Elena Shostak 28aa274f66
Updated js-yaml to v4 (#190678)
## Summary
Updated `js-yaml` to `4.1.0`.

This PR also introduces a type override for the `js-yaml` load function
to maintain compatibility across the codebase. Specifically, updated
type definition of the load function looks as follows:

```typescript
function load<T = any>(str: string, opts?: jsyaml.LoadOptions): T;
```

The original type definition of the load function in `js-yaml` changed
from `any` to `unknown`. This change would require extensive type
updates throughout the entire repository to accommodate the `unknown`
type. To avoid widespread type changes and potential issues in the
codebase, the type is overriden back to `any` for now.
This is a temporary measure, we plan to address the necessary type
changes in subsequent PRs, where teams will gradually update the
codebase to work with the `unknown` type.


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

## Release note
Updated `js-yaml` to `4.1.0`.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Maxim Palenov <maxim.palenov@elastic.co>
2024-09-19 12:25:03 +02:00
..
@appland/sql_parser Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
@elastic/eui Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
@emotion Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
@hello-pangea/dnd Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
@types/js-yaml Updated js-yaml to v4 (#190678) 2024-09-19 12:25:03 +02:00
borc.d.ts Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
cytoscape_dagre.d.ts Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
index.d.ts Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00