issue-sticker 0.2.1 → 0.2.2
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/CHANGELOG.md +7 -0
- package/dist/issue-sticker-react.js +14 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
npm 패키지 `issue-sticker`의 변경 이력입니다. 설치·업그레이드에 영향을 주는 변경만 기록합니다.
|
|
4
4
|
|
|
5
|
+
## 0.2.2 - 2026-08-06
|
|
6
|
+
|
|
7
|
+
### 수정
|
|
8
|
+
|
|
9
|
+
- SDK 위젯이 현재 페이지 URL과 정확히 일치하는 스티커만 렌더링하도록 수정했습니다. 같은 도메인이더라도 다른 path, query, hash에 등록된 스티커는 현재 페이지에 표시되지 않습니다.
|
|
10
|
+
- `/` 경로 페이지에서도 스티커 조회가 도메인 전체 매칭으로 넓어지지 않고 현재 페이지 URL 기준으로 동작합니다.
|
|
11
|
+
|
|
5
12
|
## 0.2.0 - 2026-08-05
|
|
6
13
|
|
|
7
14
|
### 주의가 필요한 변경
|
|
@@ -34622,8 +34622,18 @@ async function getActiveIntegration(projectId) {
|
|
|
34622
34622
|
return null;
|
|
34623
34623
|
}
|
|
34624
34624
|
}
|
|
34625
|
-
function applyStickerFilters(issues, _filters) {
|
|
34626
|
-
|
|
34625
|
+
function applyStickerFilters(issues, _filters, currentPageUrl) {
|
|
34626
|
+
const normalizedCurrentUrl = normalizeComparableUrl(currentPageUrl);
|
|
34627
|
+
if (!normalizedCurrentUrl) return [];
|
|
34628
|
+
return issues.filter((issue) => normalizeComparableUrl(issue.url) === normalizedCurrentUrl);
|
|
34629
|
+
}
|
|
34630
|
+
function normalizeComparableUrl(url) {
|
|
34631
|
+
if (!url) return null;
|
|
34632
|
+
try {
|
|
34633
|
+
return new URL(url).href;
|
|
34634
|
+
} catch {
|
|
34635
|
+
return null;
|
|
34636
|
+
}
|
|
34627
34637
|
}
|
|
34628
34638
|
function highlightIssue(issueId) {
|
|
34629
34639
|
const sticker = document.querySelector(`[data-issue-id="${issueId}"]`);
|
|
@@ -35110,8 +35120,8 @@ function useContentAppState() {
|
|
|
35110
35120
|
screenRecording.recordedFile
|
|
35111
35121
|
);
|
|
35112
35122
|
const filteredIssues = useMemo(() => {
|
|
35113
|
-
return applyStickerFilters(issues);
|
|
35114
|
-
}, [issues, stickerFilters]);
|
|
35123
|
+
return applyStickerFilters(issues, stickerFilters, currentUrl);
|
|
35124
|
+
}, [issues, stickerFilters, currentUrl]);
|
|
35115
35125
|
useCallback(async () => {
|
|
35116
35126
|
if (!isExtensionEnabled) {
|
|
35117
35127
|
return;
|