@jaredwray/fumanchu 1.5.0 → 2.1.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.
Files changed (3) hide show
  1. package/README.md +1 -2
  2. package/package.json +6 -13
  3. package/index.mjs +0 -16
package/README.md CHANGED
@@ -58,9 +58,8 @@ console.log(fn);
58
58
  If using it with es6 you can access `helpers` via destructuring:
59
59
 
60
60
  ```javascript
61
- import fumanchu from '@jaredwray/fumanchu';
61
+ import fumanchu, {handlebarHelpers} from '@jaredwray/fumanchu';
62
62
  import handlebars from 'handlebars';
63
- const {handlebarHelpers} = fumanchu;
64
63
  handlebarHelpers({ handlebars: handlebars });
65
64
  const template = handlebars.compile('{{#if (eq foo "bar")}}<p>Foo is bar</p>{{/if}}');
66
65
  const html = template({foo: 'bar'});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jaredwray/fumanchu",
3
3
  "description": "Handlebars + Helpers = Fumanchu",
4
- "version": "1.5.0",
4
+ "version": "2.1.0",
5
5
  "homepage": "https://github.com/jaredwray/fumanchu",
6
6
  "author": "Jared Wray (me@jaredwray.com)",
7
7
  "keywords": [
@@ -98,17 +98,10 @@
98
98
  "source": "index.js",
99
99
  "main": "index.js",
100
100
  "types": "index.d.ts",
101
- "exports": {
102
- "import": "./index.mjs",
103
- "require": "./index.js"
104
- },
105
- "engines": {
106
- "node": ">=14"
107
- },
108
101
  "scripts": {
109
102
  "test": "c8 mocha --reporter list",
110
103
  "test:ci": "c8 --reporter=lcov mocha --reporter list",
111
- "clean": "rimraf ./node_modules ./coverage yarn.lock package-lock.json",
104
+ "clean": "rimraf ./node_modules ./coverage yarn.lock package-lock.json ./dist ./dist-site",
112
105
  "website:build": "rimraf ./site/readme.md && npx -y docula build -s ./site -o ./dist-site",
113
106
  "website:serve": "rimraf ./site/readme.md && npx -y docula serve -s ./site -o ./dist-site"
114
107
  },
@@ -129,7 +122,7 @@
129
122
  "handlebars-utils": "^1.0.6",
130
123
  "has-value": "^2.0.2",
131
124
  "helper-date": "^1.0.1",
132
- "highlight.js": "^11.9.0",
125
+ "highlight.js": "^11.10.0",
133
126
  "html-tag": "^2.0.0",
134
127
  "is-even": "^1.0.0",
135
128
  "is-glob": "^4.0.3",
@@ -149,10 +142,10 @@
149
142
  "c8": "^10.1.2",
150
143
  "chai": "^4.3.10",
151
144
  "lodash": "^4.17.21",
152
- "mocha": "^10.4.0",
153
- "rimraf": "^5.0.7",
145
+ "mocha": "^10.7.3",
146
+ "rimraf": "^6.0.1",
154
147
  "template-helpers": "^1.0.1",
155
148
  "templates": "^1.2.9",
156
- "typescript": "^5.5.2"
149
+ "typescript": "^5.5.4"
157
150
  }
158
151
  }
package/index.mjs DELETED
@@ -1,16 +0,0 @@
1
- import HandlebarsLib from 'handlebars';
2
-
3
- const handlebars = HandlebarsLib.create();
4
-
5
- // Variable to hold the helpers function
6
- let handlebarHelpers;
7
-
8
- import('./helpers.js').then((module) => {
9
- handlebarHelpers = module.default;
10
- handlebarHelpers({ handlebars: handlebars });
11
- });
12
-
13
- // Exporting for ESM
14
- export default handlebars;
15
- export { handlebarHelpers };
16
-