@cronitorio/cronitor-rum-nextjs 0.4.0 → 0.5.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Cronitor RUM Next.js integration
2
2
 
3
- > **Important:** As of version 0.2.0 of this package only Next.js 13 or later will be supported. For previous versions of Next.js please install version 0.1.0 of this package.
3
+ > **Important:** As of version 0.2.0 of this package only Next.js 13 or later will be supported. Version 0.5.0 adds official support for Next.js 14-16. For previous versions of Next.js please install version 0.1.0 of this package.
4
4
 
5
5
  Official [Cronitor Real User Monitoring](https://cronitor.io/real-user-monitoring) integration for Next.js.
6
6
 
@@ -66,6 +66,12 @@ export default CustomApp;
66
66
 
67
67
  ## Changelog
68
68
 
69
+ ### 0.5.0
70
+
71
+ - Add official support for Next.js 14, 15, and 16.
72
+ - Add support for React 19.
73
+ - Update TypeScript to version 5.
74
+
69
75
  ### 0.4.0
70
76
 
71
77
  - Update cronitor-rum lib.
package/dist/index.js CHANGED
@@ -16,15 +16,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
16
16
  }) : function(o, v) {
17
17
  o["default"] = v;
18
18
  });
19
- var __importStar = (this && this.__importStar) || function (mod) {
20
- if (mod && mod.__esModule) return mod;
21
- var result = {};
22
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
- __setModuleDefault(result, mod);
24
- return result;
25
- };
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
26
36
  Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.useCronitor = void 0;
37
+ exports.useCronitor = useCronitor;
28
38
  const Cronitor = __importStar(require("@cronitorio/cronitor-rum"));
29
39
  const navigation_1 = require("next/navigation");
30
40
  const react_1 = require("react");
@@ -45,6 +55,5 @@ function useCronitor(clientKey, config = {}) {
45
55
  }, [pathname, searchParams]);
46
56
  return Cronitor;
47
57
  }
48
- exports.useCronitor = useCronitor;
49
58
  ;
50
59
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,mEAAqD;AACrD,gDAA+D;AAC/D,iCAAkC;AAElC;;;;;GAKG;AACH,SAAgB,WAAW,CAAC,SAAiB,EAAE,SAAqC,EAAE;IACpF,MAAM,QAAQ,GAAG,IAAA,wBAAW,GAAE,CAAC;IAC/B,MAAM,YAAY,GAAG,IAAA,4BAAe,GAAE,CAAC;IAEvC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IACnC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAC7B,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC;IAE7B,OAAO,QAAQ,CAAC;AAClB,CAAC;AAbD,kCAaC;AAAA,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYb,kCAaC;AAvBD,mEAAqD;AACrD,gDAA+D;AAC/D,iCAAkC;AAElC;;;;;GAKG;AACH,SAAgB,WAAW,CAAC,SAAiB,EAAE,SAAqC,EAAE;IACpF,MAAM,QAAQ,GAAG,IAAA,wBAAW,GAAE,CAAC;IAC/B,MAAM,YAAY,GAAG,IAAA,4BAAe,GAAE,CAAC;IAEvC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IACnC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAC7B,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC;IAE7B,OAAO,QAAQ,CAAC;AAClB,CAAC;AAAA,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cronitorio/cronitor-rum-nextjs",
3
- "version": "0.4.0",
3
+ "version": "0.5.1",
4
4
  "description": "Official Cronitor integration for Next.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,20 +29,20 @@
29
29
  "lint": "tslint -p tsconfig.json"
30
30
  },
31
31
  "peerDependencies": {
32
- "next": "^13",
33
- "react": "^18"
32
+ "next": "^13 || ^14 || ^15 || ^16",
33
+ "react": "^18 || ^19"
34
34
  },
35
35
  "dependencies": {
36
36
  "@cronitorio/cronitor-rum": "^0.4.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/react": "^18.0.27",
40
- "next": "^13.1.4",
39
+ "@types/react": "^18.2.0",
40
+ "next": "^14.0.0",
41
41
  "prettier": "^2.8.3",
42
42
  "react": "^18.2.0",
43
43
  "tslint": "^6.1.3",
44
44
  "tslint-config-prettier": "^1.18.0",
45
- "typescript": "^4.9.4"
45
+ "typescript": "^5.0.0"
46
46
  },
47
47
  "bugs": {
48
48
  "url": "https://github.com/cronitorio/cronitor-rum-nextjs/issues"