@code-name-jack/ngx-linkifyjs 20.1.0 → 21.0.0

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.
@@ -18,10 +18,10 @@ class NgxLinkifyjsPipe {
18
18
  }
19
19
  return linkifyStr(value, options);
20
20
  }
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: NgxLinkifyjsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
22
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.9", ngImport: i0, type: NgxLinkifyjsPipe, isStandalone: true, name: "linkify" }); }
21
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NgxLinkifyjsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
22
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.0.6", ngImport: i0, type: NgxLinkifyjsPipe, isStandalone: true, name: "linkify" }); }
23
23
  }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: NgxLinkifyjsPipe, decorators: [{
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NgxLinkifyjsPipe, decorators: [{
25
25
  type: Pipe,
26
26
  args: [{
27
27
  name: 'linkify',
@@ -67,10 +67,10 @@ class NgxLinkifyjsService {
67
67
  }
68
68
  return value.every(v => linkify.test(v));
69
69
  }
70
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: NgxLinkifyjsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
71
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: NgxLinkifyjsService, providedIn: 'root' }); }
70
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NgxLinkifyjsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
71
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NgxLinkifyjsService, providedIn: 'root' }); }
72
72
  }
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: NgxLinkifyjsService, decorators: [{
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NgxLinkifyjsService, decorators: [{
74
74
  type: Injectable,
75
75
  args: [{ providedIn: 'root' }]
76
76
  }] });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@code-name-jack/ngx-linkifyjs",
3
3
  "description": "Angular wrapper for linkifyjs(v4) - library for finding links in plain text and converting them to HTML <a> tags via linkifyjs",
4
- "version": "20.1.0",
4
+ "version": "21.0.0",
5
5
  "homepage": "https://github.com/code-name-jack/ngx-linkifyjs-v2",
6
6
  "author": {
7
7
  "name": "Code Name Jack",
@@ -31,12 +31,12 @@
31
31
  "url": "https://github.com/code-name-jack/ngx-linkifyjs-v2/issues"
32
32
  },
33
33
  "engines": {
34
- "node": ">=18.0.0"
34
+ "node": ">=22.0.0"
35
35
  },
36
36
  "peerDependencies": {
37
- "@angular/common": "^20.0.0",
38
- "@angular/core": "^20.0.0",
39
- "@schematics/angular": "^20.0.0",
37
+ "@angular/common": "^21.0.0",
38
+ "@angular/core": "^21.0.0",
39
+ "@schematics/angular": "^21.0.0",
40
40
  "linkify-plugin-hashtag": "^4.0.2",
41
41
  "linkify-plugin-mention": "^4.0.2",
42
42
  "linkify-string": "^4.0.2",
@@ -70,13 +70,13 @@
70
70
  }
71
71
  },
72
72
  "module": "fesm2022/code-name-jack-ngx-linkifyjs.mjs",
73
- "typings": "index.d.ts",
73
+ "typings": "types/code-name-jack-ngx-linkifyjs.d.ts",
74
74
  "exports": {
75
75
  "./package.json": {
76
76
  "default": "./package.json"
77
77
  },
78
78
  ".": {
79
- "types": "./index.d.ts",
79
+ "types": "./types/code-name-jack-ngx-linkifyjs.d.ts",
80
80
  "default": "./fesm2022/code-name-jack-ngx-linkifyjs.mjs"
81
81
  }
82
82
  },
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "~node_modules/@angular-devkit/schematics/collection-schema.json",
3
+ "schematics": {
4
+ "ng-add": {
5
+ "description": "Installs @code-name-jack/ngx-linkifyjs package",
6
+ "factory": "./ng-add/index#ngAdd",
7
+ "schema": "./ng-add/schema.json"
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,10 @@
1
+ import { Tree } from '@angular-devkit/schematics';
2
+ import { NodeDependency, NodeDependencyType } from '@schematics/angular/utility/dependencies';
3
+ /**
4
+ * Simplified dependency helper for Angular 20
5
+ */
6
+ /**
7
+ * Add a dependency to package.json
8
+ */
9
+ export declare function addPackageJsonDependency(host: Tree, dependency: NodeDependency): void;
10
+ export { NodeDependency, NodeDependencyType };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NodeDependencyType = void 0;
4
+ exports.addPackageJsonDependency = addPackageJsonDependency;
5
+ const dependencies_1 = require("@schematics/angular/utility/dependencies");
6
+ Object.defineProperty(exports, "NodeDependencyType", { enumerable: true, get: function () { return dependencies_1.NodeDependencyType; } });
7
+ /**
8
+ * Simplified dependency helper for Angular 20
9
+ */
10
+ /**
11
+ * Add a dependency to package.json
12
+ */
13
+ function addPackageJsonDependency(host, dependency) {
14
+ (0, dependencies_1.addPackageJsonDependency)(host, dependency);
15
+ }
16
+ //# sourceMappingURL=dependencies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../../../projects/ngx-linkifyjs-v2/schematics/helpers/dependencies.ts"],"names":[],"mappings":";;;AAcA,4DAKC;AAlBD,2EAIkD;AAgBzB,mGAjBvB,iCAAkB,OAiBuB;AAd3C;;GAEG;AAEH;;GAEG;AACH,SAAgB,wBAAwB,CACtC,IAAU,EACV,UAA0B;IAE1B,IAAA,uCAAa,EAAC,IAAI,EAAE,UAAU,CAAC,CAAC;AAClC,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './dependencies';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dependencies"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/ngx-linkifyjs-v2/schematics/helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
@@ -0,0 +1,8 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ /**
3
+ * Schematic factory for ng-add
4
+ * Installs @code-name-jack/ngx-linkifyjs package
5
+ */
6
+ export declare function ngAdd(options?: {
7
+ skipInstall?: boolean;
8
+ }): Rule;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ngAdd = ngAdd;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const tasks_1 = require("@angular-devkit/schematics/tasks");
6
+ const helpers_1 = require("../helpers");
7
+ /**
8
+ * Schematic factory for ng-add
9
+ * Installs @code-name-jack/ngx-linkifyjs package
10
+ */
11
+ function ngAdd(options = {}) {
12
+ return (0, schematics_1.chain)([
13
+ addPackageJsonDependencies(),
14
+ options.skipInstall ? (0, schematics_1.noop)() : installPackageJsonDependencies(),
15
+ ]);
16
+ }
17
+ /**
18
+ * Adds package.json dependencies
19
+ */
20
+ function addPackageJsonDependencies() {
21
+ return (host, context) => {
22
+ const packageName = '@code-name-jack/ngx-linkifyjs';
23
+ const packageVersion = loadPackageVersion(context);
24
+ (0, helpers_1.addPackageJsonDependency)(host, {
25
+ type: helpers_1.NodeDependencyType.Default,
26
+ name: packageName,
27
+ version: packageVersion,
28
+ });
29
+ context.logger.info(`✅ Added "${packageName}" to dependencies`);
30
+ return host;
31
+ };
32
+ }
33
+ /**
34
+ * Installs package.json dependencies
35
+ */
36
+ function installPackageJsonDependencies() {
37
+ return (host, context) => {
38
+ context.addTask(new tasks_1.NodePackageInstallTask());
39
+ context.logger.info('📦 Installing packages...');
40
+ return host;
41
+ };
42
+ }
43
+ /**
44
+ * Loads package version from package.json
45
+ */
46
+ function loadPackageVersion(context) {
47
+ try {
48
+ // Try to get version from package.json in the schematic package
49
+ const packageJson = require('../../package.json');
50
+ return `^${packageJson.version}` || 'latest';
51
+ }
52
+ catch (_a) {
53
+ context.logger.warn('Could not determine package version, using "latest"');
54
+ return 'latest';
55
+ }
56
+ }
57
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/ngx-linkifyjs-v2/schematics/ng-add/index.ts"],"names":[],"mappings":";;AAcA,sBAKC;AAnBD,2DAMoC;AACpC,4DAA0E;AAC1E,wCAA0E;AAE1E;;;GAGG;AACH,SAAgB,KAAK,CAAC,UAAqC,EAAE;IAC3D,OAAO,IAAA,kBAAK,EAAC;QACX,0B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