UNPKG

@alwatr/flat-string

Version:

The `flat-string` function flattens the underlying C structures of a concatenated JavaScript string.

287 lines (159 loc) 16 kB
# Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## <small>5.5.3 (2025-04-15)</small> **Note:** Version bump only for package @alwatr/flat-string ## [5.5.2](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@5.5.1...@alwatr/flat-string@5.5.2) (2025-04-01) **Note:** Version bump only for package @alwatr/flat-string ## [5.5.1](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@5.5.0...@alwatr/flat-string@5.5.1) (2025-03-18) **Note:** Version bump only for package @alwatr/flat-string ## [5.5.0](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@5.4.0...@alwatr/flat-string@5.5.0) (2025-03-06) ### Miscellaneous Chores * update username casing in changelog entries ([9722ac9](https://github.com/Alwatr/nanolib/commit/9722ac9a078438a4e8ebfa5826ea70e0e3a52ca6)) by @ ### Dependencies update * bump the development-dependencies group across 1 directory with 11 updates ([720c395](https://github.com/Alwatr/nanolib/commit/720c3954da55c929fe8fb16957121f4c51fb7f0c)) by @dependabot[bot] ## [5.4.0](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.1.8...@alwatr/flat-string@5.4.0) (2025-02-18) ## 5.3.0 (2025-02-03) ### Miscellaneous Chores * edit README ([3860b3d](https://github.com/Alwatr/nanolib/commit/3860b3df48ab82dc479d5236c2e8579df614aabf)) by @ ### Dependencies update * bump the development-dependencies group across 1 directory with 11 updates ([cb79d07](https://github.com/Alwatr/nanolib/commit/cb79d072a57c79e1c01abff1a293d6757bb65350)) by @ * update typescript and @types/node to version 5.7.3 and 22.13.0 respectively across multiple packages ([ddab05b](https://github.com/Alwatr/nanolib/commit/ddab05b5d767c30191f36a065e4bc88744e8e3fe)) by @ ## 5.0.0 (2024-11-02) ### ⚠ BREAKING CHANGES * To simplify version management and ensure consistency, all nanolib packages now use the same version as @alwatr/nanolib. This may require updates to your project's dependencies. ### Code Refactoring * use the same version as @alwatr/nanolib ([60eb860](https://github.com/Alwatr/nanolib/commit/60eb860a0e33dfffe2d1d95e63ce54c60876be06)) by @ ## [5.3.0](https://github.com/Alwatr/nanolib/compare/v5.2.1...v5.3.0) (2025-02-03) ### Miscellaneous Chores * edit README ([3860b3d](https://github.com/Alwatr/nanolib/commit/3860b3df48ab82dc479d5236c2e8579df614aabf)) by @ArmanAsadian ### Dependencies update * bump the development-dependencies group across 1 directory with 11 updates ([cb79d07](https://github.com/Alwatr/nanolib/commit/cb79d072a57c79e1c01abff1a293d6757bb65350)) by @dependabot[bot] * update typescript and @types/node to version 5.7.3 and 22.13.0 respectively across multiple packages ([ddab05b](https://github.com/Alwatr/nanolib/commit/ddab05b5d767c30191f36a065e4bc88744e8e3fe)) by @alimd ## 5.0.0 (2024-11-02) ### ⚠ BREAKING CHANGES * To simplify version management and ensure consistency, all nanolib packages now use the same version as @alwatr/nanolib. This may require updates to your project's dependencies. ### Features * **flat-string:** add new package for simplifies the complex C structures that are part of a combined JavaScript string ([ebfdcb3](https://github.com/Alwatr/nanolib/commit/ebfdcb368bc111e59d6b920f572d6365eef62144)) by @ * **prettier-config:** new package for prettier share configs ([a6fdee3](https://github.com/Alwatr/nanolib/commit/a6fdee34591abb1d19e7ea7e431bd6624e2ea6d4)) by @ * use `package-tracer` ([cc3c5f9](https://github.com/Alwatr/nanolib/commit/cc3c5f9c1a3d03f0d81b46835665f16a0426fd0d)) by @ ### Bug Fixes * all dependeny topology ([1c17f34](https://github.com/Alwatr/nanolib/commit/1c17f349adf3e98e2a80ab2da4f0f81028dc9c5f)) by @ * build process ([83fc4e6](https://github.com/Alwatr/nanolib/commit/83fc4e609f86c25291e5f89016d6777bf197ffcb)) by @ * package.json include files ([ec8c807](https://github.com/Alwatr/nanolib/commit/ec8c8075ea88d669a84037077b01f92f6ea078f1)) by @ * package.json include files ([053fc10](https://github.com/Alwatr/nanolib/commit/053fc10b518038647136db9ada2433e27ecb2e63)) by @ * tsBuildInfoFile path in tsconfig.json files ([9c4ba01](https://github.com/Alwatr/nanolib/commit/9c4ba01afdd6657de4e5feef09bb6ee03d9ce053)) by @ * update to latest nano-build with preset ([a4d3c35](https://github.com/Alwatr/nanolib/commit/a4d3c35f9d86521312bd16dd9853519f4ed2e0b4)) by @ ### Code Refactoring * build es by nano-build ([0364e51](https://github.com/Alwatr/nanolib/commit/0364e51d6a594dd104397e6c2147ef3fa3d0066f)) by @ * **flat-string:** Refactor flatString function signature ([cde9e08](https://github.com/Alwatr/nanolib/commit/cde9e08c5faf58ac188de5a8939dc53b36be7df0)) by @ * prevent side-effects ([01e00e1](https://github.com/Alwatr/nanolib/commit/01e00e191385cc92b28677df0c01a085916ae677)) by @ * use the same version as @alwatr/nanolib ([60eb860](https://github.com/Alwatr/nanolib/commit/60eb860a0e33dfffe2d1d95e63ce54c60876be06)) by @ ### Miscellaneous Chores * **flat-string:** Add devDependencies for @alwatr/tsconfig-base ([0b06345](https://github.com/Alwatr/nanolib/commit/0b06345b513f51080af3f0af0688990b42270d1a)) by @ * **flat-string:** Add scripts to package.json ([b537d8b](https://github.com/Alwatr/nanolib/commit/b537d8b4db43819667c050119050c6c182ba235a)) by @ * **flat-string:** change the license to AGPL-3.0 ([1f06ca4](https://github.com/Alwatr/nanolib/commit/1f06ca4edc93381ccbe4c8e04ef2f23a4218a2b6)) by @ * **flat-string:** embed tsconfig.json to package.json ([617835e](https://github.com/Alwatr/nanolib/commit/617835ed3e2c68ea85cb8938d90974b7212c44a0)) by @ * **flat-string:** Update package.json and yarn.lock ([c71eeb1](https://github.com/Alwatr/nanolib/commit/c71eeb16c539164438ac6b223102f9f779a4c9c8)) by @ * include LICENSE and LEGAL files to publish ([09f366f](https://github.com/Alwatr/nanolib/commit/09f366f680bfa9fb26acb2cd1ccbc68c5a9e9ad8)) by @ * rename logger env ([38443ad](https://github.com/Alwatr/nanolib/commit/38443ade4677e857b5ebd4be417f5f2eb1818c87)) by @ * switch to alwatr prettier configuration ([4426288](https://github.com/Alwatr/nanolib/commit/44262886e613b103743917d6f704f4087943273a)) by @ * Update build and lint scripts ([392d0b7](https://github.com/Alwatr/nanolib/commit/392d0b71f446bce336b0256119a80f07aff794ba)) by @ * update clean script to remove all .tsbuildinfo files ([91f1ff2](https://github.com/Alwatr/nanolib/commit/91f1ff20c964d5327879c267f530a131526544d8)) by @ * Update debug command in package.json ([be8403d](https://github.com/Alwatr/nanolib/commit/be8403dec754f2117259bb915b110ea386596401)) by @ * Update file patterns in package.json ([1f478e7](https://github.com/Alwatr/nanolib/commit/1f478e7c944da2ee79a843fa756c155ebb06f2c2)) by @ * update package keywords ([200afcf](https://github.com/Alwatr/nanolib/commit/200afcf53ae1db0e86a775c24ee1d83da771b1c0)) by @ * Update package.json exports for [@alwatr](https://github.com/alwatr) packages ([dacb362](https://github.com/Alwatr/nanolib/commit/dacb362b145e3c51b4aba00ff643687a3fac11d2)) by @ ### Dependencies update * bump the development-dependencies group across 1 directory with 10 updates ([9ed98ff](https://github.com/Alwatr/nanolib/commit/9ed98ffd0668d5a36e255c82edab3af53bffda8f)) by @ * bump the development-dependencies group with 10 updates ([fa4aaf0](https://github.com/Alwatr/nanolib/commit/fa4aaf04c907ecae06aa14000ce35216170c15ad)) by @ * upd ([451d025](https://github.com/Alwatr/nanolib/commit/451d0255ba96ed55f897a6f44f62cf4e6d2b12be)) by @ * update all dependencies ([1e0c30e](https://github.com/Alwatr/nanolib/commit/1e0c30e6a3a8e19deb5185814e24ab6c08dca573)) by @ * update all dependencies ([0e908b4](https://github.com/Alwatr/nanolib/commit/0e908b476a6b976ec2447f864c8cafcbb8a0f099)) by @ ## [1.1.8](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.1.7...@alwatr/flat-string@1.1.8) (2024-11-02) **Note:** Version bump only for package @alwatr/flat-string ## [1.1.7](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.1.6...@alwatr/flat-string@1.1.7) (2024-10-25) **Note:** Version bump only for package @alwatr/flat-string ## [1.1.6](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.1.5...@alwatr/flat-string@1.1.6) (2024-10-12) **Note:** Version bump only for package @alwatr/flat-string ## [1.1.5](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.1.4...@alwatr/flat-string@1.1.5) (2024-10-11) ### Code Refactoring - prevent side-effects ([01e00e1](https://github.com/Alwatr/nanolib/commit/01e00e191385cc92b28677df0c01a085916ae677)) by @mohammadhonarvar ## [1.1.4](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.1.3...@alwatr/flat-string@1.1.4) (2024-10-11) ### Miscellaneous Chores - include LICENSE and LEGAL files to publish ([09f366f](https://github.com/Alwatr/nanolib/commit/09f366f680bfa9fb26acb2cd1ccbc68c5a9e9ad8)) by @alimd ## [1.1.3](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.1.2...@alwatr/flat-string@1.1.3) (2024-10-11) **Note:** Version bump only for package @alwatr/flat-string ## [1.1.2](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.1.1...@alwatr/flat-string@1.1.2) (2024-10-10) ### Dependencies update - bump the development-dependencies group with 10 updates ([fa4aaf0](https://github.com/Alwatr/nanolib/commit/fa4aaf04c907ecae06aa14000ce35216170c15ad)) by @dependabot[bot] ## [1.1.1](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.1.0...@alwatr/flat-string@1.1.1) (2024-10-08) **Note:** Version bump only for package @alwatr/flat-string ## [1.1.0](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.23...@alwatr/flat-string@1.1.0) (2024-09-29) ### Features - use `package-tracer` ([cc3c5f9](https://github.com/Alwatr/nanolib/commit/cc3c5f9c1a3d03f0d81b46835665f16a0426fd0d)) by @mohammadhonarvar ### Bug Fixes - all dependeny topology ([1c17f34](https://github.com/Alwatr/nanolib/commit/1c17f349adf3e98e2a80ab2da4f0f81028dc9c5f)) by @mohammadhonarvar ### Miscellaneous Chores - **flat-string:** change the license to AGPL-3.0 ([1f06ca4](https://github.com/Alwatr/nanolib/commit/1f06ca4edc93381ccbe4c8e04ef2f23a4218a2b6)) by @ArmanAsadian - Update build and lint scripts ([392d0b7](https://github.com/Alwatr/nanolib/commit/392d0b71f446bce336b0256119a80f07aff794ba)) by @alimd ## [1.0.23](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.22...@alwatr/flat-string@1.0.23) (2024-09-21) **Note:** Version bump only for package @alwatr/flat-string ## [1.0.22](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.21...@alwatr/flat-string@1.0.22) (2024-09-15) ### Dependencies update - bump the development-dependencies group across 1 directory with 10 updates ([9ed98ff](https://github.com/Alwatr/nanolib/commit/9ed98ffd0668d5a36e255c82edab3af53bffda8f)) by @dependabot[bot] ## [1.0.21](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.20...@alwatr/flat-string@1.0.21) (2024-08-31) ### Miscellaneous Chores - Update package.json exports for [@alwatr](https://github.com/alwatr) packages ([dacb362](https://github.com/Alwatr/nanolib/commit/dacb362b145e3c51b4aba00ff643687a3fac11d2)) by @ ## [1.0.20](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.19...@alwatr/flat-string@1.0.20) (2024-08-31) ### Dependencies update - update all dependencies ([1e0c30e](https://github.com/Alwatr/nanolib/commit/1e0c30e6a3a8e19deb5185814e24ab6c08dca573)) by @alimd ## [1.0.19](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.18...@alwatr/flat-string@1.0.19) (2024-07-04) ### Dependencies update - update all dependencies ([0e908b4](https://github.com/Alwatr/nanolib/commit/0e908b476a6b976ec2447f864c8cafcbb8a0f099)) by @ ## [1.0.18](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.17...@alwatr/flat-string@1.0.18) (2024-05-12) **Note:** Version bump only for package @alwatr/flat-string ## [1.0.17](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.16...@alwatr/flat-string@1.0.17) (2024-04-25) **Note:** Version bump only for package @alwatr/flat-string ## [1.0.16](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.15...@alwatr/flat-string@1.0.16) (2024-03-28) **Note:** Version bump only for package @alwatr/flat-string ## [1.0.15](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.14...@alwatr/flat-string@1.0.15) (2024-01-31) **Note:** Version bump only for package @alwatr/flat-string ## [1.0.14](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.13...@alwatr/flat-string@1.0.14) (2024-01-24) **Note:** Version bump only for package @alwatr/flat-string ## [1.0.13](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.12...@alwatr/flat-string@1.0.13) (2024-01-16) **Note:** Version bump only for package @alwatr/flat-string ## [1.0.12](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.11...@alwatr/flat-string@1.0.12) (2024-01-03) **Note:** Version bump only for package @alwatr/flat-string ## [1.0.11](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.10...@alwatr/flat-string@1.0.11) (2024-01-03) **Note:** Version bump only for package @alwatr/flat-string ## [1.0.10](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.9...@alwatr/flat-string@1.0.10) (2023-12-26) **Note:** Version bump only for package @alwatr/flat-string ## [1.0.9](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.8...@alwatr/flat-string@1.0.9) (2023-12-26) **Note:** Version bump only for package @alwatr/flat-string ## [1.0.8](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.7...@alwatr/flat-string@1.0.8) (2023-12-23) ### Bug Fixes - tsBuildInfoFile path in tsconfig.json files ([9c4ba01](https://github.com/Alwatr/nanolib/commit/9c4ba01afdd6657de4e5feef09bb6ee03d9ce053)) by @ ## [1.0.7](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.6...@alwatr/flat-string@1.0.7) (2023-12-23) **Note:** Version bump only for package @alwatr/flat-string ## [1.0.6](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.5...@alwatr/flat-string@1.0.6) (2023-12-23) **Note:** Version bump only for package @alwatr/flat-string ## [1.0.5](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.4...@alwatr/flat-string@1.0.5) (2023-12-23) ### Bug Fixes - update to latest nano-build with preset ([a4d3c35](https://github.com/Alwatr/nanolib/commit/a4d3c35f9d86521312bd16dd9853519f4ed2e0b4)) by @ ## [1.0.4](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.3...@alwatr/flat-string@1.0.4) (2023-12-22) **Note:** Version bump only for package @alwatr/flat-string ## [1.0.3](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.2...@alwatr/flat-string@1.0.3) (2023-12-22) ### Bug Fixes - package.json include files ([ec8c807](https://github.com/Alwatr/nanolib/commit/ec8c8075ea88d669a84037077b01f92f6ea078f1)) by @ ## [1.0.2](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.1...@alwatr/flat-string@1.0.2) (2023-12-22) ### Bug Fixes - package.json include files ([053fc10](https://github.com/Alwatr/nanolib/commit/053fc10b518038647136db9ada2433e27ecb2e63)) by @alimd ## [1.0.1](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.0...@alwatr/flat-string@1.0.1) (2023-12-21) ### Features - **prettier-config:** new package for prettier share configs ([a6fdee3](https://github.com/Alwatr/nanolib/commit/a6fdee34591abb1d19e7ea7e431bd6624e2ea6d4)) by @alimd # 1.0.0 (2023-12-20) ### Bug Fixes - build process ([83fc4e6](https://github.com/Alwatr/nanolib/commit/83fc4e609f86c25291e5f89016d6777bf197ffcb)) by @alimd ### Features - **flat-string:** add new package for simplifies the complex C structures that are part of a combined JavaScript string ([ebfdcb3](https://github.com/Alwatr/nanolib/commit/ebfdcb368bc111e59d6b920f572d6365eef62144)) by @alimd