featurely-site-manager 1.0.6 → 1.0.8
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 +21 -0
- package/dist/index.js +19 -1
- package/dist/index.mjs +19 -1
- package/package.json +2 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,27 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [1.0.8] - 2026-03-15
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **CRITICAL FIX**: Updated default API URL from `featurely.no` to `www.featurely.no` to prevent 307 CORS redirect issues
|
|
13
|
+
- Fixes NetworkError when fetching site configuration and status messages
|
|
14
|
+
- Resolves "Access-Control-Allow-Origin header missing" errors
|
|
15
|
+
|
|
16
|
+
## [1.0.7] - 2026-03-15
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- **SDK Health Monitoring**: Integrated Featurely error tracking to monitor SDK issues in production
|
|
21
|
+
- Internal error tracking helps us identify and fix SDK bugs faster
|
|
22
|
+
- Error tracking is minimal and privacy-focused (no user data collection)
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- Cleaned up package dependencies (removed accidental packages: dom, pur, ify)
|
|
27
|
+
|
|
7
28
|
## [1.0.6] - 2026-03-15
|
|
8
29
|
|
|
9
30
|
### Security
|
package/dist/index.js
CHANGED
|
@@ -35,6 +35,24 @@ __export(index_exports, {
|
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(index_exports);
|
|
37
37
|
var import_dompurify = __toESM(require("dompurify"));
|
|
38
|
+
var import_featurely_error_tracker = require("featurely-error-tracker");
|
|
39
|
+
var internalErrorTracker = (() => {
|
|
40
|
+
try {
|
|
41
|
+
const tracker = new import_featurely_error_tracker.ErrorTracker({
|
|
42
|
+
apiKey: "ft_live_R4nAn9dDWxk6X3oMzB-tcQh0NrYvA04IhSfwPMUmyaU",
|
|
43
|
+
apiUrl: "https://www.featurely.no",
|
|
44
|
+
environment: "production",
|
|
45
|
+
appVersion: "1.0.7",
|
|
46
|
+
maxBreadcrumbs: 30,
|
|
47
|
+
enabled: true
|
|
48
|
+
});
|
|
49
|
+
tracker.install();
|
|
50
|
+
return tracker;
|
|
51
|
+
} catch (e) {
|
|
52
|
+
console.warn("Failed to initialize SDK error tracking:", e);
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
})();
|
|
38
56
|
var _SiteManager = class _SiteManager {
|
|
39
57
|
constructor(config) {
|
|
40
58
|
this.siteConfig = null;
|
|
@@ -57,7 +75,7 @@ var _SiteManager = class _SiteManager {
|
|
|
57
75
|
this.config = {
|
|
58
76
|
apiKey: config.apiKey,
|
|
59
77
|
projectId: config.projectId,
|
|
60
|
-
apiUrl: config.apiUrl || "https://featurely.no",
|
|
78
|
+
apiUrl: config.apiUrl || "https://www.featurely.no",
|
|
61
79
|
pollInterval: (_a = config.pollInterval) != null ? _a : 6e4,
|
|
62
80
|
userEmail: config.userEmail,
|
|
63
81
|
userId: config.userId,
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
import DOMPurify from "dompurify";
|
|
3
|
+
import { ErrorTracker } from "featurely-error-tracker";
|
|
4
|
+
var internalErrorTracker = (() => {
|
|
5
|
+
try {
|
|
6
|
+
const tracker = new ErrorTracker({
|
|
7
|
+
apiKey: "ft_live_R4nAn9dDWxk6X3oMzB-tcQh0NrYvA04IhSfwPMUmyaU",
|
|
8
|
+
apiUrl: "https://www.featurely.no",
|
|
9
|
+
environment: "production",
|
|
10
|
+
appVersion: "1.0.7",
|
|
11
|
+
maxBreadcrumbs: 30,
|
|
12
|
+
enabled: true
|
|
13
|
+
});
|
|
14
|
+
tracker.install();
|
|
15
|
+
return tracker;
|
|
16
|
+
} catch (e) {
|
|
17
|
+
console.warn("Failed to initialize SDK error tracking:", e);
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
})();
|
|
3
21
|
var _SiteManager = class _SiteManager {
|
|
4
22
|
constructor(config) {
|
|
5
23
|
this.siteConfig = null;
|
|
@@ -22,7 +40,7 @@ var _SiteManager = class _SiteManager {
|
|
|
22
40
|
this.config = {
|
|
23
41
|
apiKey: config.apiKey,
|
|
24
42
|
projectId: config.projectId,
|
|
25
|
-
apiUrl: config.apiUrl || "https://featurely.no",
|
|
43
|
+
apiUrl: config.apiUrl || "https://www.featurely.no",
|
|
26
44
|
pollInterval: (_a = config.pollInterval) != null ? _a : 6e4,
|
|
27
45
|
userEmail: config.userEmail,
|
|
28
46
|
userId: config.userId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "featurely-site-manager",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Site management SDK for maintenance mode, status messages, and feature flags",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -49,9 +49,7 @@
|
|
|
49
49
|
"typescript": "^5.0.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"dom": "^0.0.3",
|
|
53
52
|
"dompurify": "^3.3.3",
|
|
54
|
-
"
|
|
55
|
-
"pur": "^0.0.1"
|
|
53
|
+
"featurely-error-tracker": "^1.0.7"
|
|
56
54
|
}
|
|
57
55
|
}
|