@mtcute/markdown-parser 0.11.0 → 0.12.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.
package/cjs/index.js CHANGED
@@ -1,4 +1,10 @@
1
1
  "use strict";
2
+ if (typeof globalThis !== 'undefined' && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
3
+ globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true
4
+ console.warn("[@mtcute/markdown-parser] CommonJS support is deprecated and will be removed soon. Please consider switching to ESM, it's "+(new Date()).getFullYear()+" already.")
5
+ console.warn("[@mtcute/markdown-parser] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c")
6
+ }
7
+ "use strict";
2
8
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
9
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
10
  };
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './esm/index.js'
package/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './esm/index.js'
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@mtcute/markdown-parser",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "Markdown entities parser for mtcute",
5
5
  "author": "alina sireneva <alina@tei.su>",
6
6
  "license": "MIT",
7
- "main": "cjs/index.js",
8
7
  "type": "module",
9
8
  "sideEffects": false,
10
9
  "scripts": {},
@@ -16,7 +15,8 @@
16
15
  },
17
16
  "dependencies": {
18
17
  "long": "5.2.3",
19
- "@mtcute/core": "^0.11.0"
18
+ "@mtcute/core": "^0.12.0"
20
19
  },
20
+ "main": "cjs/index.js",
21
21
  "module": "esm/index.js"
22
22
  }