Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: unjs/scule
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.1.0
Choose a base ref
...
head repository: unjs/scule
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.1.1
Choose a head ref
  • 3 commits
  • 8 files changed
  • 2 contributors

Commits on Nov 18, 2023

  1. Copy the full SHA
    4c9da31 View commit details

Commits on Nov 30, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e32421a View commit details
  2. chore(release): v1.1.1

    pi0 committed Nov 30, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    8304a04 View commit details
Showing with 169 additions and 130 deletions.
  1. +12 −0 CHANGELOG.md
  2. +3 −3 README.md
  3. +3 −3 package.json
  4. +86 −86 pnpm-lock.yaml
  5. +23 −11 src/index.ts
  6. +21 −6 src/types.ts
  7. +2 −2 test/scule.test.ts
  8. +19 −19 test/types.test-d.ts
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,18 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## v1.1.1

[compare changes](https://github.com/unjs/scule/compare/v1.1.0...v1.1.1)

### 🩹 Fixes

- **pascalCase, camelCase:** Move normalize behind a flag ([#63](https://github.com/unjs/scule/pull/63))

### ❤️ Contributors

- Pooya Parsa ([@pi0](http://github.com/pi0))

## v1.1.0

[compare changes](https://github.com/unjs/scule/compare/v1.0.0...v1.1.0)
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ import { pascalCase } from "scule";

## Utils

### `pascalCase(str)`
### `pascalCase(str, opts?: { normalize })`

Splits string and joins by PascalCase convention:

@@ -38,9 +38,9 @@ pascalCase("foo-bar_baz");
// FooBarBaz
```

**Notice:** If an uppercase letter is followed by other uppercase letters (like `FooBAR`), they are preserved.
**Notice:** If an uppercase letter is followed by other uppercase letters (like `FooBAR`), they are preserved. You can use `{ normalize: true }` for strictly following pascalCase convention.

### `camelCase`
### `camelCase(str, opts?: { normalize })`

Splits string and joins by camelCase convention:

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scule",
"version": "1.1.0",
"version": "1.1.1",
"description": "String case utils",
"repository": "unjs/scule",
"license": "MIT",
@@ -29,10 +29,10 @@
"test": "pnpm lint && vitest run --typecheck --coverage"
},
"devDependencies": {
"@types/node": "^20.9.0",
"@types/node": "^20.9.1",
"@vitest/coverage-v8": "^1.0.0-beta.4",
"changelogen": "^0.5.5",
"eslint": "^8.53.0",
"eslint": "^8.54.0",
"eslint-config-unjs": "^0.2.1",
"prettier": "^3.1.0",
"typescript": "^5.2.2",
Loading