highlight-words 1.1.1-beta1 → 1.1.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/Changelog.md CHANGED
@@ -1,3 +1,10 @@
1
+ ### v1.1.0
2
+
3
+ ---
4
+
5
+ - Switch to new build system
6
+ - Drop umd support
7
+
1
8
  ### v1.0.6
2
9
 
3
10
  ---
package/Readme.md CHANGED
@@ -30,17 +30,17 @@ console.log(chunks);
30
30
  /*
31
31
  [
32
32
  {
33
- id: '62acb210-76dd-4682-b948-8d359a966dcb'
33
+ key: '62acb210-76dd-4682-b948-8d359a966dcb'
34
34
  text: 'The brown fox jumped ',
35
35
  match: false
36
36
  },
37
37
  {
38
- id: '69779adf-6d7c-45ec-ae9b-49d0cb292e28';
38
+ key: '69779adf-6d7c-45ec-ae9b-49d0cb292e28';
39
39
  text: 'over',
40
40
  match: true
41
41
  },
42
42
  {
43
- id: '46c5b7a0-5414-47c5-81ba-2496f33fe2f6';
43
+ key: '46c5b7a0-5414-47c5-81ba-2496f33fe2f6';
44
44
  text: ' the lazy dog',
45
45
  match: false
46
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "highlight-words",
3
- "version": "1.1.1-beta1",
3
+ "version": "1.1.1",
4
4
  "description": "Split a piece text into multiple chunks based on a search query, allowing you to highlight the matches.",
5
5
  "engines": {
6
6
  "node": ">= 12",
@@ -48,7 +48,8 @@
48
48
  "lint": "eslint src --ext .ts",
49
49
  "format": "prettier --write \"src/**/*.ts\"",
50
50
  "test": "jest",
51
- "test:mutations": "stryker run"
51
+ "test:mutations": "stryker run",
52
+ "prepublishOnly": "npm-run-all test typecheck lint build"
52
53
  },
53
54
  "devDependencies": {
54
55
  "@babel/core": "^7.12.13",
@@ -72,6 +73,7 @@
72
73
  "jest": "^26.6.3",
73
74
  "jest-watch-typeahead": "^0.6.1",
74
75
  "lint-staged": "^10.5.4",
76
+ "npm-run-all": "^4.1.5",
75
77
  "precise-commits": "^1.0.2",
76
78
  "prettier": "^2.2.1",
77
79
  "rimraf": "^3.0.2",