Skip to content

Commit

Permalink
chore: remove deprecated functions (#241)
Browse files Browse the repository at this point in the history
Signed-off-by: azjezz <azjezz@protonmail.com>
  • Loading branch information
azjezz authored Oct 29, 2021
1 parent 08a6730 commit da87d8b
Show file tree
Hide file tree
Showing 231 changed files with 238 additions and 6,937 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Changelog

## 2.0.0

### Arr

* **BC** - removed `Psl\Arr` component.

### Type

* **BC** - removed `Type\is_array`, `Type\is_arraykey`, `Type\is_bool`, `Type\is_callable`, `Type\is_float`, `Type\is_instanceof`, `Type\is_int`, `Type\is_iterable`, `Type\is_null`, `Type\is_numeric`, `Type\is_object`, `Type\is_resource`, `Type\is_scalar`, and `Type\is_string` functions ( use `TypeInterface::matches($value)` instead ).

### Iter

* **BC** - removed `Iter\chain`, `Iter\chunk`, `Iter\chunk_with_keys`, `Iter\diff_by_key`, `Iter\drop`, `Iter\drop_while`, `Iter\enumerate`, `Iter\filter`, `Iter\filter_keys`, `Iter\filter_nulls`, `Iter\filter_with_key`, `Iter\flat_map`, `Iter\flatten`, `Iter\flip`, `Iter\from_entries`, `Iter\from_keys`, `Iter\keys`, `Iter\map`, `Iter\map_keys`, `Iter\map_with_key`, `Iter\merge`, `Iter\product`, `Iter\pull`, `Iter\pull_with_key`, `Iter\range`, `Iter\reductions`, `Iter\reindex`, `Iter\repeat`, `Iter\reproduce`, `Iter\reverse`, `Iter\slice`, `Iter\take`, `Iter\take_while`, `Iter\to_array`, `Iter\to_array_with_keys`, `Iter\values`, and `Iter\zip` functions.
* **BC** - signature of `Iter\reduce_keys` function changed from `reduce_keys<Tk, Tv, Ts>(iterable<Tk, Tv> $iterable, (callable(?Ts, Tk): Ts) $function, Ts|null $initial = null): Ts|null` to `reduce_keys<Tk, Tv, Ts>(iterable<Tk, Tv> $iterable, (callable(Ts, Tk): Ts) $function, Ts $initial): Ts`.
* **BC** - signature of `Iter\reduce_with_keys` function changed from `reduce_with_keys<Tk, Tv, Ts>(iterable<Tk, Tv> $iterable, (callable(?Ts, Tk, Tv): Ts) $function, Ts|null $initial = null): Ts|null` to `reduce_with_keys<Tk, Tv, Ts>(iterable<Tk, Tv> $iterable, (callable(Ts, Tk, Tv): Ts) $function, Ts $initial): Ts`.
1 change: 0 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
# Components API

- [Psl](./component/psl.md)
- [Psl\Arr](./component/arr.md)
- [Psl\Class](./component/class.md)
- [Psl\Collection](./component/collection.md)
- [Psl\DataStructure](./component/data-structure.md)
Expand Down
61 changes: 0 additions & 61 deletions docs/component/arr.md

This file was deleted.

37 changes: 0 additions & 37 deletions docs/component/iter.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,58 +15,21 @@
- [all](./../../src/Psl/Iter/all.php#L28)
- [any](./../../src/Psl/Iter/any.php#L28)
- [apply](./../../src/Psl/Iter/apply.php#L27)
- [chain](./../../src/Psl/Iter/chain.php#L31) ( deprecated )
- [chunk](./../../src/Psl/Iter/chunk.php#L33) ( deprecated )
- [chunk_with_keys](./../../src/Psl/Iter/chunk_with_keys.php#L30) ( deprecated )
- [contains](./../../src/Psl/Iter/contains.php#L27)
- [contains_key](./../../src/Psl/Iter/contains_key.php#L16)
- [count](./../../src/Psl/Iter/count.php#L29)
- [diff_by_key](./../../src/Psl/Iter/diff_by_key.php#L23) ( deprecated )
- [drop](./../../src/Psl/Iter/drop.php#L31) ( deprecated )
- [drop_while](./../../src/Psl/Iter/drop_while.php#L31) ( deprecated )
- [enumerate](./../../src/Psl/Iter/enumerate.php#L23) ( deprecated )
- [filter](./../../src/Psl/Iter/filter.php#L34) ( deprecated )
- [filter_keys](./../../src/Psl/Iter/filter_keys.php#L36) ( deprecated )
- [filter_nulls](./../../src/Psl/Iter/filter_nulls.php#L26) ( deprecated )
- [filter_with_key](./../../src/Psl/Iter/filter_with_key.php#L39) ( deprecated )
- [first](./../../src/Psl/Iter/first.php#L27)
- [first_key](./../../src/Psl/Iter/first_key.php#L30)
- [flat_map](./../../src/Psl/Iter/flat_map.php#L22) ( deprecated )
- [flatten](./../../src/Psl/Iter/flatten.php#L24) ( deprecated )
- [flip](./../../src/Psl/Iter/flip.php#L27) ( deprecated )
- [from_entries](./../../src/Psl/Iter/from_entries.php#L24) ( deprecated )
- [from_keys](./../../src/Psl/Iter/from_keys.php#L25) ( deprecated )
- [is_empty](./../../src/Psl/Iter/is_empty.php#L12)
- [keys](./../../src/Psl/Iter/keys.php#L28) ( deprecated )
- [last](./../../src/Psl/Iter/last.php#L17)
- [last_key](./../../src/Psl/Iter/last_key.php#L17)
- [map](./../../src/Psl/Iter/map.php#L35) ( deprecated )
- [map_keys](./../../src/Psl/Iter/map_keys.php#L35) ( deprecated )
- [map_with_key](./../../src/Psl/Iter/map_with_key.php#L33) ( deprecated )
- [merge](./../../src/Psl/Iter/merge.php#L32) ( deprecated )
- [product](./../../src/Psl/Iter/product.php#L34) ( deprecated )
- [pull](./../../src/Psl/Iter/pull.php#L40) ( deprecated )
- [pull_with_key](./../../src/Psl/Iter/pull_with_key.php#L41) ( deprecated )
- [random](./../../src/Psl/Iter/random.php#L23)
- [range](./../../src/Psl/Iter/range.php#L45) ( deprecated )
- [reduce](./../../src/Psl/Iter/reduce.php#L32)
- [reduce_keys](./../../src/Psl/Iter/reduce_keys.php#L33)
- [reduce_with_keys](./../../src/Psl/Iter/reduce_with_keys.php#L40)
- [reductions](./../../src/Psl/Iter/reductions.php#L33) ( deprecated )
- [reindex](./../../src/Psl/Iter/reindex.php#L43) ( deprecated )
- [repeat](./../../src/Psl/Iter/repeat.php#L36) ( deprecated )
- [reproduce](./../../src/Psl/Iter/reproduce.php#L33) ( deprecated )
- [reverse](./../../src/Psl/Iter/reverse.php#L26) ( deprecated )
- [rewindable](./../../src/Psl/Iter/rewindable.php#L20)
- [search](./../../src/Psl/Iter/search.php#L26)
- [slice](./../../src/Psl/Iter/slice.php#L36) ( deprecated )
- [take](./../../src/Psl/Iter/take.php#L25) ( deprecated )
- [take_while](./../../src/Psl/Iter/take_while.php#L32) ( deprecated )
- [to_array](./../../src/Psl/Iter/to_array.php#L21) ( deprecated )
- [to_array_with_keys](./../../src/Psl/Iter/to_array_with_keys.php#L22) ( deprecated )
- [to_iterator](./../../src/Psl/Iter/to_iterator.php#L19)
- [values](./../../src/Psl/Iter/values.php#L32) ( deprecated )
- [zip](./../../src/Psl/Iter/zip.php#L38) ( deprecated )

#### `Classes`

Expand Down
14 changes: 0 additions & 14 deletions docs/component/type.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,7 @@
- [float](./../../src/Psl/Type/float.php#L10)
- [int](./../../src/Psl/Type/int.php#L10)
- [intersection](./../../src/Psl/Type/intersection.php#L22)
- [is_array](./../../src/Psl/Type/is_array.php#L18) ( deprecated )
- [is_arraykey](./../../src/Psl/Type/is_arraykey.php#L16) ( deprecated )
- [is_bool](./../../src/Psl/Type/is_bool.php#L18) ( deprecated )
- [is_callable](./../../src/Psl/Type/is_callable.php#L16)
- [is_float](./../../src/Psl/Type/is_float.php#L18) ( deprecated )
- [is_instanceof](./../../src/Psl/Type/is_instanceof.php#L22) ( deprecated )
- [is_int](./../../src/Psl/Type/is_int.php#L18) ( deprecated )
- [is_iterable](./../../src/Psl/Type/is_iterable.php#L18) ( deprecated )
- [is_nan](./../../src/Psl/Type/is_nan.php#L14)
- [is_null](./../../src/Psl/Type/is_null.php#L16) ( deprecated )
- [is_numeric](./../../src/Psl/Type/is_numeric.php#L18) ( deprecated )
- [is_object](./../../src/Psl/Type/is_object.php#L18) ( deprecated )
- [is_resource](./../../src/Psl/Type/is_resource.php#L20) ( deprecated )
- [is_scalar](./../../src/Psl/Type/is_scalar.php#L18) ( deprecated )
- [is_string](./../../src/Psl/Type/is_string.php#L18) ( deprecated )
- [iterable](./../../src/Psl/Type/iterable.php#L20)
- [literal_scalar](./../../src/Psl/Type/literal_scalar.php#L14)
- [map](./../../src/Psl/Type/map.php#L21)
Expand Down
1 change: 0 additions & 1 deletion docs/documenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ function get_all_components(): array
{
$components = [
'Psl',
'Psl\\Arr',
'Psl\\Class',
'Psl\\Collection',
'Psl\\DataStructure',
Expand Down
34 changes: 0 additions & 34 deletions src/Psl/Arr/at.php

This file was deleted.

25 changes: 0 additions & 25 deletions src/Psl/Arr/concat.php

This file was deleted.

33 changes: 0 additions & 33 deletions src/Psl/Arr/contains.php

This file was deleted.

28 changes: 0 additions & 28 deletions src/Psl/Arr/contains_key.php

This file was deleted.

39 changes: 0 additions & 39 deletions src/Psl/Arr/count.php

This file was deleted.

25 changes: 0 additions & 25 deletions src/Psl/Arr/count_values.php

This file was deleted.

Loading

0 comments on commit da87d8b

Please sign in to comment.