@microsoft/fast-element 2.10.2 → 2.10.3
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/ARCHITECTURE_FASTELEMENT.md +1 -1
- package/ARCHITECTURE_HTML_TAGGED_TEMPLATE_LITERAL.md +3 -1
- package/ARCHITECTURE_INTRO.md +1 -1
- package/ARCHITECTURE_OVERVIEW.md +1 -1
- package/CHANGELOG.json +108 -1
- package/CHANGELOG.md +10 -2
- package/DESIGN.md +506 -0
- package/biome.json +4 -0
- package/dist/context/context.api.json +17 -1
- package/dist/di/di.api.json +17 -1
- package/dist/dts/hydration/target-builder.d.ts +17 -1
- package/dist/dts/templating/html-binding-directive.d.ts +39 -4
- package/dist/dts/templating/html-directive.d.ts +7 -1
- package/dist/dts/templating/template.d.ts +19 -1
- package/dist/dts/templating/view.d.ts +11 -0
- package/dist/dts/tsdoc-metadata.json +1 -1
- package/dist/esm/components/hydration.js +17 -0
- package/dist/esm/hydration/target-builder.js +22 -1
- package/dist/esm/templating/compiler.js +29 -11
- package/dist/esm/templating/html-binding-directive.js +59 -4
- package/dist/esm/templating/html-directive.js +7 -1
- package/dist/esm/templating/install-hydratable-view-templates.js +6 -0
- package/dist/esm/templating/markup.js +8 -0
- package/dist/esm/templating/template.js +19 -1
- package/dist/esm/templating/view.js +13 -0
- package/dist/fast-element.api.json +20 -4
- package/dist/fast-element.debug.js +176 -227
- package/dist/fast-element.debug.min.js +2 -2
- package/dist/fast-element.js +176 -227
- package/dist/fast-element.min.js +2 -2
- package/dist/fast-element.untrimmed.d.ts +76 -6
- package/docs/api-report.api.md +3 -3
- package/package.json +7 -19
- package/tsconfig.api-extractor.json +6 -0
- package/.eslintrc.json +0 -19
- package/karma.conf.cjs +0 -148
package/karma.conf.cjs
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
const path = require("path");
|
|
2
|
-
const basePath = path.resolve(__dirname);
|
|
3
|
-
|
|
4
|
-
const commonChromeFlags = [
|
|
5
|
-
"--no-default-browser-check",
|
|
6
|
-
"--no-first-run",
|
|
7
|
-
"--no-sandbox",
|
|
8
|
-
"--no-managed-user-acknowledgment-check",
|
|
9
|
-
"--disable-background-timer-throttling",
|
|
10
|
-
"--disable-backing-store-limit",
|
|
11
|
-
"--disable-boot-animation",
|
|
12
|
-
"--disable-cloud-import",
|
|
13
|
-
"--disable-contextual-search",
|
|
14
|
-
"--disable-default-apps",
|
|
15
|
-
"--disable-extensions",
|
|
16
|
-
"--disable-infobars",
|
|
17
|
-
"--disable-translate",
|
|
18
|
-
];
|
|
19
|
-
|
|
20
|
-
module.exports = function (config) {
|
|
21
|
-
let browsers;
|
|
22
|
-
if (process.env.BROWSERS) {
|
|
23
|
-
browsers = [process.env.BROWSERS];
|
|
24
|
-
} else if (config.browsers) {
|
|
25
|
-
browsers = config.browsers;
|
|
26
|
-
} else {
|
|
27
|
-
browsers = ["Chrome"];
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const setup = "setup-browser" + (config.package ? "-" + config.package : "");
|
|
31
|
-
const options = {
|
|
32
|
-
basePath,
|
|
33
|
-
browserDisconnectTimeout: 10000,
|
|
34
|
-
processKillTimeout: 10000,
|
|
35
|
-
frameworks: ["source-map-support", "mocha"],
|
|
36
|
-
plugins: [
|
|
37
|
-
require("karma-mocha"),
|
|
38
|
-
require("karma-mocha-reporter"),
|
|
39
|
-
require("karma-webpack"),
|
|
40
|
-
require("karma-source-map-support"),
|
|
41
|
-
require("karma-sourcemap-loader"),
|
|
42
|
-
require("karma-coverage"),
|
|
43
|
-
require("karma-chrome-launcher"),
|
|
44
|
-
require("karma-firefox-launcher"),
|
|
45
|
-
],
|
|
46
|
-
files: [`src/__test__/${setup}.cjs`],
|
|
47
|
-
preprocessors: {
|
|
48
|
-
[`src/__test__/${setup}.cjs`]: ["webpack", "sourcemap"],
|
|
49
|
-
},
|
|
50
|
-
webpackMiddleware: {
|
|
51
|
-
// webpack-dev-middleware configuration
|
|
52
|
-
// i. e.
|
|
53
|
-
stats: "errors-only",
|
|
54
|
-
},
|
|
55
|
-
webpack: {
|
|
56
|
-
mode: "development",
|
|
57
|
-
resolve: {
|
|
58
|
-
extensions: [".js"],
|
|
59
|
-
modules: ["dist", "node_modules"],
|
|
60
|
-
mainFields: ["module", "main"],
|
|
61
|
-
},
|
|
62
|
-
devtool: "inline-source-map",
|
|
63
|
-
performance: {
|
|
64
|
-
hints: false,
|
|
65
|
-
},
|
|
66
|
-
optimization: {
|
|
67
|
-
usedExports: true,
|
|
68
|
-
flagIncludedChunks: false,
|
|
69
|
-
sideEffects: true,
|
|
70
|
-
concatenateModules: true,
|
|
71
|
-
splitChunks: {
|
|
72
|
-
name: false,
|
|
73
|
-
},
|
|
74
|
-
runtimeChunk: false,
|
|
75
|
-
noEmitOnErrors: false,
|
|
76
|
-
checkWasmTypes: false,
|
|
77
|
-
minimize: false,
|
|
78
|
-
},
|
|
79
|
-
module: {
|
|
80
|
-
rules: [
|
|
81
|
-
{
|
|
82
|
-
test: /\.js\.map$/,
|
|
83
|
-
use: ["ignore-loader"],
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
test: /\.js$/,
|
|
87
|
-
use: ["source-map-loader"],
|
|
88
|
-
enforce: "pre",
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
mime: {
|
|
94
|
-
"text/x-typescript": ["ts"],
|
|
95
|
-
},
|
|
96
|
-
reporters: [config.reporter || (process.env.CI ? "min" : "progress")],
|
|
97
|
-
browsers: browsers,
|
|
98
|
-
customLaunchers: {
|
|
99
|
-
ChromeDebugging: {
|
|
100
|
-
base: "Chrome",
|
|
101
|
-
flags: [...commonChromeFlags, "--remote-debugging-port=9333"],
|
|
102
|
-
debug: true,
|
|
103
|
-
},
|
|
104
|
-
ChromeHeadlessOpt: {
|
|
105
|
-
base: "ChromeHeadless",
|
|
106
|
-
flags: [...commonChromeFlags],
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
client: {
|
|
110
|
-
captureConsole: true,
|
|
111
|
-
mocha: {
|
|
112
|
-
bail: config["bail"],
|
|
113
|
-
ui: "bdd",
|
|
114
|
-
timeout: 5000,
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
logLevel: config.LOG_ERROR, // to disable the WARN 404 for image requests,
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
if (config.coverage) {
|
|
121
|
-
options.webpack.module.rules.push({
|
|
122
|
-
enforce: "post",
|
|
123
|
-
exclude: /(__tests__|testing|node_modules|\.spec\.[tj]s$)/,
|
|
124
|
-
loader: '@jsdevtools/coverage-istanbul-loader',
|
|
125
|
-
options: { esModules: true },
|
|
126
|
-
test: /\.[tj]s$/,
|
|
127
|
-
});
|
|
128
|
-
options.reporters = ["coverage", ...options.reporters];
|
|
129
|
-
options.coverageReporter = {
|
|
130
|
-
dir: path.join(basePath, "coverage"),
|
|
131
|
-
reporters: [
|
|
132
|
-
{ type: "html", subdir: "html" },
|
|
133
|
-
{ type: "text-summary" },
|
|
134
|
-
{ type: "json", subdir: ".", file: "coverage.json" },
|
|
135
|
-
{ type: "lcovonly", subdir: ".", file: "lcov.info" },
|
|
136
|
-
{ type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" },
|
|
137
|
-
],
|
|
138
|
-
fixWebpackSourcePaths: true,
|
|
139
|
-
};
|
|
140
|
-
options.junitReporter = {
|
|
141
|
-
outputDir: "coverage",
|
|
142
|
-
outputFile: "test-results.xml",
|
|
143
|
-
useBrowserName: false,
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
config.set(options);
|
|
148
|
-
};
|