svger-cli 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -7
- package/dist/utils/native.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# SVGER-CLI v2.0.
|
|
1
|
+
# SVGER-CLI v2.0.5 - Enterprise SVG Processing Framework
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/js/svger-cli)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
|
|
12
12
|
## 🆕 **Latest Developer Experience Improvements**
|
|
13
13
|
|
|
14
|
-
### **🔧 Recent Critical Fixes (v2.0.
|
|
14
|
+
### **🔧 Recent Critical Fixes (v2.0.5)**
|
|
15
15
|
|
|
16
|
+
- **🆕 CRITICAL FIX: PascalCase Component Naming**: Fixed issue where files like "ArrowBendDownLeft.svg" were incorrectly converted to "Arrowbenddownleft.tsx" instead of preserving the correct "ArrowBendDownLeft.tsx" format
|
|
16
17
|
- **✅ Fixed TypeScript Duplicate Export Errors**: Resolved duplicate export issues in
|
|
17
18
|
auto-generated index files
|
|
18
19
|
- **✅ Enhanced PascalCase Preservation**: Improved filename casing preservation (e.g.,
|
|
@@ -1868,7 +1869,7 @@ jobs:
|
|
|
1868
1869
|
node-version: '18'
|
|
1869
1870
|
|
|
1870
1871
|
- name: Install SVGER-CLI
|
|
1871
|
-
run: npm install -g svger-cli@2.0.
|
|
1872
|
+
run: npm install -g svger-cli@2.0.5
|
|
1872
1873
|
|
|
1873
1874
|
- name: Generate Components
|
|
1874
1875
|
run: |
|
|
@@ -1899,7 +1900,7 @@ pipeline {
|
|
|
1899
1900
|
stage('Generate SVG Components') {
|
|
1900
1901
|
steps {
|
|
1901
1902
|
sh '''
|
|
1902
|
-
npm install -g svger-cli@2.0.
|
|
1903
|
+
npm install -g svger-cli@2.0.5
|
|
1903
1904
|
svger-cli build \
|
|
1904
1905
|
--src ./assets/svg \
|
|
1905
1906
|
--out ./components \
|
|
@@ -1921,7 +1922,7 @@ pipeline {
|
|
|
1921
1922
|
FROM node:18-alpine
|
|
1922
1923
|
|
|
1923
1924
|
# Install SVGER-CLI globally
|
|
1924
|
-
RUN npm install -g svger-cli@2.0.
|
|
1925
|
+
RUN npm install -g svger-cli@2.0.5
|
|
1925
1926
|
|
|
1926
1927
|
# Set working directory
|
|
1927
1928
|
WORKDIR /app
|
|
@@ -2056,7 +2057,7 @@ svger-cli build --performance --memory
|
|
|
2056
2057
|
```bash
|
|
2057
2058
|
# Install SVGER-CLI
|
|
2058
2059
|
npm uninstall @svgr/webpack @svgr/cli
|
|
2059
|
-
npm install -g svger-cli@2.0.
|
|
2060
|
+
npm install -g svger-cli@2.0.5
|
|
2060
2061
|
|
|
2061
2062
|
# Migrate configuration
|
|
2062
2063
|
svger-cli init --framework react --typescript
|
|
@@ -2069,7 +2070,7 @@ svger-cli build --src ./assets --out ./components
|
|
|
2069
2070
|
|
|
2070
2071
|
```bash
|
|
2071
2072
|
# Upgrade to v2.0
|
|
2072
|
-
npm install -g svger-cli@2.0.
|
|
2073
|
+
npm install -g svger-cli@2.0.5
|
|
2073
2074
|
|
|
2074
2075
|
# Migrate configuration
|
|
2075
2076
|
svger-cli config --migrate
|
package/dist/utils/native.js
CHANGED
|
@@ -16,8 +16,8 @@ import { promisify } from 'util';
|
|
|
16
16
|
* toPascalCase('ArrowBendDownLeft') => 'ArrowBendDownLeft'
|
|
17
17
|
*/
|
|
18
18
|
export function toPascalCase(str) {
|
|
19
|
-
// If the string is already in
|
|
20
|
-
if (/^[A-Z][
|
|
19
|
+
// If the string is already in PascalCase format (no separators and starts with capital), preserve it
|
|
20
|
+
if (/^[A-Z]/.test(str) && !/[-_\s]/.test(str)) {
|
|
21
21
|
return str;
|
|
22
22
|
}
|
|
23
23
|
return str
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svger-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Enterprise-grade, zero-dependency SVG to component converter supporting React, Vue, Angular, Svelte, Solid, Lit, Preact & Vanilla. Features auto-generated TypeScript exports, responsive design, themes, performance optimization & 85% faster processing than SVGR.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|