@rhinostone/swig-twig 2.0.0-alpha.7 → 2.0.0-alpha.8

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/lib/index.js CHANGED
@@ -189,32 +189,3 @@ exports.invalidateCache = defaultInstance.invalidateCache;
189
189
  * app.set('view engine', 'twig');
190
190
  */
191
191
  exports.__express = defaultInstance.renderFile;
192
-
193
- var _parseDeprecationWarned = false;
194
-
195
- /**
196
- * Parse a Twig source string into the parse-tree shape consumed by
197
- * swig-core's `engine.compile`: `{ name, parent, tokens, blocks }`.
198
- *
199
- * @deprecated since 2.0.0-alpha.4 — use `new exports.Twig(opts)` and the
200
- * per-instance `precompile` / `compile` / `render` surface installed by
201
- * `engine.install`. Slated for removal in `2.0.0` stable. The full-instance
202
- * path uses closure-captured tag/filter maps and honors `setFilter` /
203
- * `setTag` overrides; this Path B wrapper does not.
204
- *
205
- * @param {string} source Twig template source.
206
- * @param {object} [options] Per-call options.
207
- * @return {object} `{ name, parent, tokens, blocks }`.
208
- */
209
- exports.parse = function (source, options) {
210
- if (!_parseDeprecationWarned) {
211
- _parseDeprecationWarned = true;
212
- if (typeof console !== 'undefined' && console.warn) {
213
- console.warn('[@rhinostone/swig-twig] exports.parse is deprecated and will be removed in 2.0.0. Use `new twig.Twig(opts)` and the per-instance precompile/compile/render API instead.');
214
- }
215
- }
216
- options = options || {};
217
- var tags = options.tags || exports.tags;
218
- var filters = options.filters || exports.filters;
219
- return exports.parser.parse(undefined, source, options, tags, filters);
220
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinostone/swig-twig",
3
- "version": "2.0.0-alpha.7",
3
+ "version": "2.0.0-alpha.8",
4
4
  "description": "Twig frontend for the @rhinostone/swig-core template engine. Phase 3 of the multi-flavor architecture (see @rhinostone/swig #T16).",
5
5
  "keywords": [
6
6
  "template",
@@ -22,7 +22,7 @@
22
22
  "node": ">=12"
23
23
  },
24
24
  "peerDependencies": {
25
- "@rhinostone/swig-core": "2.0.0-alpha.7"
25
+ "@rhinostone/swig-core": "2.0.0-alpha.8"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"