extension 2.0.0-rc.34 → 2.0.0-rc.36
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/README.md +1 -1
- package/dist/cli.js +1 -1
- package/dist/types/index.d.ts +0 -60
- package/package.json +8 -6
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
# Extension.js [![Version][npm-version-image]][npm-version-url] [![Downloads][downloads-image]][downloads-url] [![workflow][action-image]][action-url] [![coverage][coverage-image]][coverage-url] [![discord][discord-image]][discord-url]
|
|
17
17
|
|
|
18
|
-
<img alt="Logo" align="right" src="https://
|
|
18
|
+
<img alt="Logo" align="right" src="https://avatars.githubusercontent.com/u/172809806" width="20%" />
|
|
19
19
|
|
|
20
20
|
- [Create A New Extension](#create-a-new-extension) — How to create a new extension.
|
|
21
21
|
- [Get Started Immediately](#get-started-immediately) — Get work done in no time.
|
package/dist/cli.js
CHANGED
|
@@ -86,7 +86,7 @@ async function check_updates_checkUpdates(packageJson) {
|
|
|
86
86
|
}
|
|
87
87
|
if (update && isStableVersion(update.latest)) console.log(checkUpdates(packageJson, update));
|
|
88
88
|
}
|
|
89
|
-
var package_namespaceObject = JSON.parse('{"license":"MIT","repository":{"type":"git","url":"https://github.com/
|
|
89
|
+
var package_namespaceObject = JSON.parse('{"license":"MIT","repository":{"type":"git","url":"https://github.com/extension-js/extension.js.git","directory":"programs/cli"},"engines":{"node":">=18"},"exports":{".":{"types":"./dist/cli.d.ts","import":"./dist/cli.js","require":"./dist/cli.js"}},"main":"./dist/cli.js","types":"./dist/cli.d.ts","files":["dist","types"],"bin":{"extension":"./dist/cli.js"},"name":"extension","version":"2.0.0-rc.36","description":"Create cross-browser extensions with no build configuration.","author":{"name":"Cezar Augusto","email":"boss@cezaraugusto.net","url":"https://cezaraugusto.com"},"scripts":{"watch":"rslib build --watch","compile:types":"bash install_scripts.sh","compile:readme-files":"node ./scripts/copyMarkdownFilesToCli.js","compile:cli":"rslib build","compile":"pnpm compile:readme-files && pnpm compile:cli && pnpm compile:types","clean":"rm -rf dist","test":"echo \\"Note: no test specified\\" && exit 0","test:cli":"vitest run"},"keywords":["zero-config","build","develop","browser","extension","chrome extension","edge extension","firefox extension","safari extension","web","react","typescript"],"dependencies":{"@types/chrome":"^0.0.287","@types/node":"^22.10.1","@types/react":"^19.0.1","@types/react-dom":"^19.0.1","@types/webextension-polyfill":"0.12.3","chalk":"^5.3.0","commander":"^12.1.0","extension-create":"workspace:*","extension-develop":"workspace:*","semver":"^7.6.3","update-check":"^1.5.4","webextension-polyfill":"^0.12.0"},"devDependencies":{"@rslib/core":"^0.6.9","@types/mock-fs":"^4.13.4","@types/semver":"^7.5.8","mock-fs":"^5.4.1","tsconfig":"*","typescript":"5.7.2","vitest":"3.2.2"}}');
|
|
90
90
|
check_updates_checkUpdates(package_namespaceObject);
|
|
91
91
|
const extensionJs = external_commander_namespaceObject.program;
|
|
92
92
|
const vendors = (browser)=>'all' === browser ? 'chrome,edge,firefox'.split(',') : browser.split(',');
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="chrome" />
|
|
3
|
-
/// <reference types="./js-frameworks.d.ts" />
|
|
4
|
-
/// <reference path="./css-content.d.ts" />
|
|
5
|
-
/// <reference path="./css-modules.d.ts" />
|
|
6
|
-
/// <reference path="./images.d.ts" />
|
|
7
|
-
|
|
8
|
-
type ExtensionBrowser =
|
|
9
|
-
| 'chrome'
|
|
10
|
-
| 'edge'
|
|
11
|
-
| 'firefox'
|
|
12
|
-
| 'chromium-based'
|
|
13
|
-
| 'gecko-based'
|
|
14
|
-
|
|
15
|
-
type ExtensionMode = 'development' | 'production'
|
|
16
|
-
|
|
17
|
-
interface ExtensionEnv {
|
|
18
|
-
EXTENSION_BROWSER: ExtensionBrowser
|
|
19
|
-
EXTENSION_MODE: ExtensionMode
|
|
20
|
-
EXTENSION_PUBLIC_BROWSER: ExtensionBrowser
|
|
21
|
-
EXTENSION_PUBLIC_MODE: ExtensionMode
|
|
22
|
-
EXTENSION_PUBLIC_DESCRIPTION_TEXT: string
|
|
23
|
-
EXTENSION_PUBLIC_OPENAI_API_KEY: string
|
|
24
|
-
EXTENSION_ENV: ExtensionMode
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// Global augmentations
|
|
28
|
-
declare global {
|
|
29
|
-
namespace NodeJS {
|
|
30
|
-
interface ProcessEnv extends ExtensionEnv {
|
|
31
|
-
[key: string]: string | undefined
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
interface ImportMetaEnv extends ExtensionEnv {
|
|
36
|
-
[key: string]: string | undefined
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
interface ImportMeta {
|
|
40
|
-
readonly env: ImportMetaEnv
|
|
41
|
-
readonly webpackHot?: {
|
|
42
|
-
accept: (module?: string | string[], callback?: () => void) => void
|
|
43
|
-
dispose: (callback: () => void) => void
|
|
44
|
-
}
|
|
45
|
-
url: string
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
interface Window {
|
|
49
|
-
/**
|
|
50
|
-
* @deprecated
|
|
51
|
-
* @description
|
|
52
|
-
* This is how Extension.js used to inject the shadow root into the window object.
|
|
53
|
-
* Use the shadowRoot reference from the content script instead.
|
|
54
|
-
*/
|
|
55
|
-
__EXTENSION_SHADOW_ROOT__: ShadowRoot
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// This export is needed for TypeScript to treat this file as a module
|
|
60
|
-
export {}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"license": "MIT",
|
|
3
3
|
"repository": {
|
|
4
4
|
"type": "git",
|
|
5
|
-
"url": "https://github.com/
|
|
5
|
+
"url": "https://github.com/extension-js/extension.js.git",
|
|
6
6
|
"directory": "programs/cli"
|
|
7
7
|
},
|
|
8
8
|
"engines": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"extension": "./dist/cli.js"
|
|
26
26
|
},
|
|
27
27
|
"name": "extension",
|
|
28
|
-
"version": "2.0.0-rc.
|
|
28
|
+
"version": "2.0.0-rc.36",
|
|
29
29
|
"description": "Create cross-browser extensions with no build configuration.",
|
|
30
30
|
"author": {
|
|
31
31
|
"name": "Cezar Augusto",
|
|
@@ -47,17 +47,18 @@
|
|
|
47
47
|
"typescript"
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"chalk": "^5.3.0",
|
|
51
50
|
"@types/chrome": "^0.0.287",
|
|
52
51
|
"@types/node": "^22.10.1",
|
|
53
52
|
"@types/react": "^19.0.1",
|
|
54
53
|
"@types/react-dom": "^19.0.1",
|
|
54
|
+
"@types/webextension-polyfill": "0.12.3",
|
|
55
|
+
"chalk": "^5.3.0",
|
|
55
56
|
"commander": "^12.1.0",
|
|
56
57
|
"semver": "^7.6.3",
|
|
57
58
|
"update-check": "^1.5.4",
|
|
58
59
|
"webextension-polyfill": "^0.12.0",
|
|
59
|
-
"extension-create": "2.0.0-rc.
|
|
60
|
-
"extension-develop": "2.0.0-rc.
|
|
60
|
+
"extension-create": "2.0.0-rc.36",
|
|
61
|
+
"extension-develop": "2.0.0-rc.36"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
|
63
64
|
"@rslib/core": "^0.6.9",
|
|
@@ -65,7 +66,8 @@
|
|
|
65
66
|
"@types/semver": "^7.5.8",
|
|
66
67
|
"mock-fs": "^5.4.1",
|
|
67
68
|
"tsconfig": "*",
|
|
68
|
-
"typescript": "5.7.2"
|
|
69
|
+
"typescript": "5.7.2",
|
|
70
|
+
"vitest": "3.2.2"
|
|
69
71
|
},
|
|
70
72
|
"scripts": {
|
|
71
73
|
"watch": "rslib build --watch",
|