Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix not passing options recursively #334

Merged
merged 3 commits into from
Feb 14, 2024

Conversation

Quicksaver
Copy link
Contributor

As title says, options were not being passed recursively in changeKeys.

@blakeembrey
Copy link
Owner

Thanks for the catch! Would you be interested in adding a small test case?

@Quicksaver
Copy link
Contributor Author

@blakeembrey there you go 😁 test successfully fails without the patch

@Quicksaver
Copy link
Contributor Author

@blakeembrey I reworked a tiny bit how options per-test are stored, I think it's easier to add and maintain future tests this way.

@blakeembrey blakeembrey merged commit 15ed560 into blakeembrey:main Feb 14, 2024
2 checks passed
@blakeembrey
Copy link
Owner

Awesome, thanks!

renovate bot added a commit to simonknittel/sinister-incorporated that referenced this pull request Feb 21, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[change-case](https://github.com/blakeembrey/change-case/tree/master/packages/change-case#readme)
([source](https://github.com/blakeembrey/change-case)) | [`5.4.2` ->
`5.4.3`](https://renovatebot.com/diffs/npm/change-case/5.4.2/5.4.3) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/change-case/5.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/change-case/5.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/change-case/5.4.2/5.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/change-case/5.4.2/5.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>blakeembrey/change-case (change-case)</summary>

###
[`v5.4.3`](https://github.com/blakeembrey/change-case/releases/tag/change-case%405.4.3):
Fix recursive options in keys change case

[Compare
Source](https://github.com/blakeembrey/change-case/compare/[email protected])

**Fixed**

- Fixes options used recursively in `change-case/keys` - previously
options were ignored after the first level
[blakeembrey/change-case#334
by [@&#8203;Quicksaver](https://github.com/Quicksaver)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/simonknittel/sinister-incorporated).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMDAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIwMC4wIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot added a commit to runtime-env/import-meta-env that referenced this pull request Jul 6, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[change-case](https://github.com/blakeembrey/change-case/tree/master/packages/change-case#readme)
([source](https://github.com/blakeembrey/change-case)) | [`5.1.2` ->
`5.4.4`](https://renovatebot.com/diffs/npm/change-case/5.1.2/5.4.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/change-case/5.4.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/change-case/5.4.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/change-case/5.1.2/5.4.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/change-case/5.1.2/5.4.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>blakeembrey/change-case (change-case)</summary>

###
[`v5.4.4`](https://github.com/blakeembrey/change-case/compare/[email protected])

[Compare
Source](https://github.com/blakeembrey/change-case/compare/[email protected]@5.4.4)

###
[`v5.4.3`](https://github.com/blakeembrey/change-case/releases/tag/change-case%405.4.3):
Fix recursive options in keys change case

[Compare
Source](https://github.com/blakeembrey/change-case/compare/[email protected])

**Fixed**

- Fixes options used recursively in `change-case/keys` - previously
options were ignored after the first level
[blakeembrey/change-case#334
by [@&#8203;Quicksaver](https://github.com/Quicksaver)

###
[`v5.4.2`](https://github.com/blakeembrey/change-case/compare/[email protected])

[Compare
Source](https://github.com/blakeembrey/change-case/compare/[email protected])

###
[`v5.4.1`](https://github.com/blakeembrey/change-case/releases/tag/change-case%405.4.1):
Remove regex lookbehind

[Compare
Source](https://github.com/blakeembrey/change-case/compare/[email protected]@5.4.1)

**Fixed**

- Remove lookbehind from regex for older browser support
(blakeembrey/change-case@6512635)

###
[`v5.4.0`](https://github.com/blakeembrey/change-case/releases/tag/change-case%405.4.0):
Add `split` option to `change-case`

[Compare
Source](https://github.com/blakeembrey/change-case/compare/[email protected]@5.4.0)

**Added**

- Added a `split` option to the `change-case` transform functions to
allow for customization on how words are extracted from input

**Changed**

- The package exports are now `default` instead of `import` to fix some
tooling that doesn't work properly with `import`
- The exported `split` utility no longer accepts a second options
argument

###
[`v5.3.0`](https://github.com/blakeembrey/change-case/releases/tag/change-case%405.3.0):
Add `suffixCharacters` option

[Compare
Source](https://github.com/blakeembrey/change-case/compare/[email protected]@5.3.0)

**Added**

- New `suffixCharacters` option to retain characters during case
conversion. Useful for retaining something like the `_` in `type_`.
Closes
[blakeembrey/change-case#322.

###
[`v5.2.0`](https://github.com/blakeembrey/change-case/releases/tag/change-case%405.2.0):
New `delimiter` and `mergeAmbiguousCharacters` options

[Compare
Source](https://github.com/blakeembrey/change-case/compare/[email protected])

**Added**

- Add `delimiter` option for customizing join character in any change
case method
- Add `mergeAmbiguousCharacters` for camel and pascal case to avoid
prefixing `_` before numbers

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/runtime-env/import-meta-env).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuOSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants