Skip to content

Commit 379449a

Browse files
committed
refactor(parser): 优化样式表解析逻辑
- 将样式表解析逻辑提取为独立函数 resolveStylesheetFromReference - 移除重复的样式文件查找代码 - 优化 CSS 选择器缓存机制 - 统一处理 JS 引用表达式和字面量表达式的解析 - 添加空值安全检查以避免 NullPointerException - 清理未使用的导入语句
1 parent 9889e59 commit 379449a

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
## [Unreleased]
44

5+
## [1.5.1] - 2025-12-09
6+
7+
- Extracted stylesheet parsing logic into a separate function `resolveStylesheetFromReference`
8+
- Removed duplicate style file lookup code
9+
- Optimized CSS selector caching mechanism
10+
- Unified handling of JS reference expressions and literal expressions parsing
11+
- Added null safety checks to avoid NullPointerException
12+
- Cleaned up unused import statements
13+
514
## [1.5.0] - 2025-12-08
615

716
### Bug Fixes
@@ -132,7 +141,9 @@
132141
- support a little complex parents selector
133142
- support css selector has pseudo
134143

135-
[Unreleased]: https://github.com/Q-Peppa/react-css-modules-all/compare/v1.4.0...HEAD
144+
[Unreleased]: https://github.com/Q-Peppa/react-css-modules-all/compare/v1.5.1...HEAD
145+
[1.5.1]: https://github.com/Q-Peppa/react-css-modules-all/compare/v1.5.0...v1.5.1
146+
[1.5.0]: https://github.com/Q-Peppa/react-css-modules-all/compare/v1.3.0...v1.5.0
136147
[1.4.0]: https://github.com/Q-Peppa/react-css-modules-all/compare/v1.3.0...v1.4.0
137148
[1.3.0]: https://github.com/Q-Peppa/react-css-modules-all/compare/v1.2.1...v1.3.0
138149
[1.2.1]: https://github.com/Q-Peppa/react-css-modules-all/compare/v1.2.0...v1.2.1

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ pluginGroup = com.example.css
44
pluginName = React Css Modules All
55
pluginRepositoryUrl = https://github.com/Q-Peppa/react-css-modules-all
66
# SemVer format -> https://semver.org
7-
pluginVersion=1.5.0
8-
version=1.5.0
7+
pluginVersion=1.5.1
8+
version=1.5.1
99

1010

1111
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html

0 commit comments

Comments
 (0)