Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .config/webpack/development.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ module.exports.create = function create() {
commonjs: 'tiny-emitter',
amd: 'tiny-emitter',
},
unorm: {
root: 'unorm',
commonjs2: 'unorm',
commonjs: 'unorm',
amd: 'unorm',
},
};
c.plugins.push(new WebpackBar({ name: ` ${PACKAGE_FILENAME}.js` }));
});
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Changed

- Removed `unorm` dependency. [#1370](https://github.com/handsontable/hyperformula/issues/1370)

## [2.6.1] - 2023-12-27

### Fixed
Expand Down
1 change: 0 additions & 1 deletion docs/guide/client-side-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ Or you may load just a minimal build and add the dependencies on your own:
```html
<script src="https://cdn.jsdelivr.net/npm/chevrotain@6/lib/chevrotain.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/tiny-emitter@2/dist/tinyemitter.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/unorm@1/lib/unorm.js"></script>
<script src="https://cdn.jsdelivr.net/npm/hyperformula/dist/hyperformula.min.js"></script>
```

Expand Down
2 changes: 0 additions & 2 deletions docs/guide/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ features.
| [core-js](https://github.com/zloirock/core-js) | The MIT License | Denis Pushkarev |
| [jStat](https://github.com/jstat/jstat) | The MIT License | jStat |
| [tiny-emitter](https://github.com/scottcorgan/tiny-emitter) | The MIT License | Scott Corgan |
| [unorm](https://github.com/walling/unorm) | The MIT License | Matsuza, Bjarke Walling |


The _bessel_ and _jStat_ projects are distributed with the code repository at the path `src/interpreter/plugin/3rdparty` and bundled with the code package.

Expand Down
29 changes: 1 addition & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
"@types/jest": "^26.0.0",
"@types/jsdom": "^16.2.1",
"@types/node": "^10.17.19",
"@types/unorm": "^1.3.28",
"@types/webpack-env": "^1.15.2",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^5.59.1",
Expand Down Expand Up @@ -157,7 +156,6 @@
},
"dependencies": {
"chevrotain": "^6.5.0",
"tiny-emitter": "^2.1.0",
"unorm": "^1.6.0"
"tiny-emitter": "^2.1.0"
}
}
4 changes: 1 addition & 3 deletions src/interpreter/ArithmeticHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (c) 2024 Handsoncode. All rights reserved.
*/

import unorm from 'unorm'
import {CellError, CellValueTypeOrd, ErrorType, getCellValueType} from '../Cell'
import {Config} from '../Config'
import {DateTimeHelper} from '../DateTimeHelper'
Expand Down Expand Up @@ -835,6 +834,5 @@ export function coerceRangeToScalar(arg: SimpleRangeValue, state: InterpreterSta
type NormalizationForm = 'nfc' | 'nfd' | 'nfkc' | 'nfkd'

export function normalizeString(str: string, form: NormalizationForm): string {
return typeof str.normalize === 'function'
? str.normalize(form.toUpperCase()) : unorm[form](str)
return str.normalize(form.toUpperCase())
}