@mvtlab/nextjs-orchestrator 0.1.2 → 0.1.3
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/package.json +13 -3
- package/CHANGELOG.md +0 -47
package/package.json
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mvtlab/nextjs-orchestrator",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Next.js SDK to integrate the MVT Lab CDN engine with optional anti-flicker support.",
|
|
5
|
-
"main": "dist/index.
|
|
6
|
-
"module": "dist/index.
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
8
18
|
"sideEffects": false,
|
|
9
19
|
"scripts": {
|
|
10
20
|
"build": "tsc -p tsconfig.build.json"
|
package/CHANGELOG.md
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [Unreleased]
|
|
9
|
-
|
|
10
|
-
## [0.1.2] - 2024-11-26
|
|
11
|
-
|
|
12
|
-
### Changed
|
|
13
|
-
|
|
14
|
-
- Included README in published npm package so documentation appears on npmjs.com
|
|
15
|
-
- Minor documentation polish and packaging tweaks (no runtime changes)
|
|
16
|
-
|
|
17
|
-
## [0.1.1] - 2024-11-26
|
|
18
|
-
|
|
19
|
-
### Changed
|
|
20
|
-
|
|
21
|
-
- Updated README documentation for improved clarity and simplicity
|
|
22
|
-
- Removed engine URL configuration references
|
|
23
|
-
- Enhanced technical documentation with implementation details
|
|
24
|
-
- Added easter eggs explaining technical internals (`rmfk`, `abhide`, IIFE translation)
|
|
25
|
-
|
|
26
|
-
## [0.1.0] - 2024-11-26
|
|
27
|
-
|
|
28
|
-
### Added
|
|
29
|
-
|
|
30
|
-
- Initial release of `@mvtlab/nextjs-orchestrator`
|
|
31
|
-
- `MVTOrchestrator` React component for Next.js integration
|
|
32
|
-
- Anti-flicker support with configurable timeout
|
|
33
|
-
- Automatic script injection for MVTLab.io CDN engine
|
|
34
|
-
- Project key validation to enforce single key per website
|
|
35
|
-
- TypeScript type definitions (`MVTOrchestratorProps`)
|
|
36
|
-
- Support for both Next.js App Router and Pages Router
|
|
37
|
-
- SSR-safe implementation (all DOM operations in `useEffect`)
|
|
38
|
-
- Duplicate script prevention (idempotent script injection)
|
|
39
|
-
- Full documentation and examples
|
|
40
|
-
|
|
41
|
-
### Technical Details
|
|
42
|
-
|
|
43
|
-
- Wraps the standard MVTLab.io HTML integration snippet into a React component
|
|
44
|
-
- Translates IIFE pattern with `document`/`window` access into React hooks
|
|
45
|
-
- Implements `window.rmfk()` callback for engine readiness signaling
|
|
46
|
-
- Uses `id="abhide"` style tag matching original snippet behavior
|
|
47
|
-
|