Implement JQHTML function cache ID system and fix bundle compilation Implement underscore prefix for system tables Fix JS syntax linter to support decorators and grant exception to Task system SPA: Update planning docs and wishlists with remaining features SPA: Document Navigation API abandonment and future enhancements Implement SPA browser integration with History API (Phase 1) Convert contacts view page to SPA action Convert clients pages to SPA actions and document conversion procedure SPA: Merge GET parameters and update documentation Implement SPA route URL generation in JavaScript and PHP Implement SPA bootstrap controller architecture Add SPA routing manual page (rsx:man spa) Add SPA routing documentation to CLAUDE.md Phase 4 Complete: Client-side SPA routing implementation Update get_routes() consumers for unified route structure Complete SPA Phase 3: PHP-side route type detection and is_spa flag Restore unified routes structure and Manifest_Query class Refactor route indexing and add SPA infrastructure Phase 3 Complete: SPA route registration in manifest Implement SPA Phase 2: Extract router code and test decorators Rename Jqhtml_Component to Component and complete SPA foundation setup 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
49 lines
1.3 KiB
TypeScript
49 lines
1.3 KiB
TypeScript
import type { ModuleName, Target, TargetVersion } from "./shared";
|
|
|
|
type StringOrRegExp = string | RegExp;
|
|
|
|
type Modules = StringOrRegExp | readonly StringOrRegExp[];
|
|
|
|
type BrowserslistQuery = string | ReadonlyArray<string>;
|
|
|
|
type Environments = {
|
|
[target in Target]?: string | number;
|
|
};
|
|
|
|
type Targets = Environments & {
|
|
browsers?: Environments | BrowserslistQuery,
|
|
esmodules?: boolean | 'intersect',
|
|
};
|
|
|
|
type CompatOptions = {
|
|
/** entry / module / namespace / an array of them, by default - all `core-js` modules */
|
|
modules?: Modules,
|
|
/** a blacklist, entry / module / namespace / an array of them, by default - empty list */
|
|
exclude?: Modules,
|
|
/** optional browserslist or core-js-compat format query */
|
|
targets?: Targets | BrowserslistQuery,
|
|
/** used `core-js` version, by default the latest */
|
|
version?: string,
|
|
/** inverse of the result, shows modules that are NOT required for the target environment */
|
|
inverse?: boolean,
|
|
/**
|
|
* @deprecated use `modules` instead
|
|
*/
|
|
filter?: Modules
|
|
};
|
|
|
|
type CompatOutput = {
|
|
/** array of required modules */
|
|
list: ModuleName[],
|
|
/** object with targets for each module */
|
|
targets: {
|
|
[module: ModuleName]: {
|
|
[target in Target]?: TargetVersion
|
|
}
|
|
}
|
|
}
|
|
|
|
declare function compat(options?: CompatOptions): CompatOutput;
|
|
|
|
export = compat;
|