diff --git a/CHANGELOG.md b/CHANGELOG.md index b966362..64703df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,6 +61,9 @@ are data: they can grow in any release.) ## [Unreleased] +### Added +- Migration hints for gradio 4.0: `gradio.inputs` and `gradio.outputs` → `gradio.components` (quoting the 3.x warnings in gradio's own `inputs.py` / `outputs.py`), `gradio.Variable` → `gradio.State`, and the `source` argument of `gr.Audio` / `gr.Video` → `sources`, the last three from the 4.0.0 entry of gradio's CHANGELOG. + ### Added - Migration hints for polars 2.0, taken from the removal table in its upgrade guide: `melt()` → `unpivot()`, `with_row_count()` → `with_row_index()`, `pl.Array.width` → `size`, `read_csv_batched()` → `scan_csv()`, and the diff --git a/src/deptime/curated.toml b/src/deptime/curated.toml index 14d78bd..c6e69ef 100644 --- a/src/deptime/curated.toml +++ b/src/deptime/curated.toml @@ -2862,3 +2862,40 @@ path = "polars.SQLContext.__init__(eager_execution)" target = "eager" quote = "pl.SQLContext(eager_execution=...) | 0.20.31 | eager=..." url = "https://docs.pola.rs/releases/upgrade/2/" + +# gradio-4 +# gradio 3.x warned in its own source, and 4.0.0's CHANGELOG lists the removals: +[[hint]] +package = "gradio" +path = "gradio.inputs" +target = "gradio.components" +quote = "Usage of gradio.inputs is deprecated, and will not be supported in the future, please import your component from gradio.components" +url = "https://github.com/gradio-app/gradio/blob/gradio@3.50.2/gradio/inputs.py#L16-L19" + +[[hint]] +package = "gradio" +path = "gradio.outputs" +target = "gradio.components" +quote = "Usage of gradio.outputs is deprecated, and will not be supported in the future, please import your components from gradio.components" +url = "https://github.com/gradio-app/gradio/blob/gradio@3.50.2/gradio/outputs.py#L16-L20" + +[[hint]] +package = "gradio" +path = "gradio.Variable" +target = "gradio.State" +quote = "* Removes the deprecated `Variable` alias for `State`" +url = "https://github.com/gradio-app/gradio/blob/main/CHANGELOG.md" + +[[hint]] +package = "gradio" +path = "gradio.Audio.__init__(source)" +target = "sources" +quote = "* Renames `source` param in `gr.Audio` and `gr.Video` to `sources`" +url = "https://github.com/gradio-app/gradio/blob/main/CHANGELOG.md" + +[[hint]] +package = "gradio" +path = "gradio.Video.__init__(source)" +target = "sources" +quote = "* Renames `source` param in `gr.Audio` and `gr.Video` to `sources`" +url = "https://github.com/gradio-app/gradio/blob/main/CHANGELOG.md"