solid-refresh 0.6.3 → 0.7.1

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.
Files changed (44) hide show
  1. package/README.md +39 -11
  2. package/dist/babel.cjs +583 -286
  3. package/dist/babel.mjs +583 -286
  4. package/dist/types/src/babel/core/checks.d.ts +4 -0
  5. package/dist/types/src/babel/core/checks.d.ts.map +1 -0
  6. package/dist/types/src/babel/core/constants.d.ts +8 -0
  7. package/dist/types/src/babel/core/constants.d.ts.map +1 -0
  8. package/dist/types/src/babel/core/create-registry.d.ts +5 -0
  9. package/dist/types/src/babel/core/create-registry.d.ts.map +1 -0
  10. package/dist/types/src/babel/core/generate-unique-name.d.ts +4 -0
  11. package/dist/types/src/babel/core/generate-unique-name.d.ts.map +1 -0
  12. package/dist/types/src/babel/core/generator.d.ts +3 -0
  13. package/dist/types/src/babel/core/generator.d.ts.map +1 -0
  14. package/dist/types/src/babel/core/get-descriptive-name.d.ts +3 -0
  15. package/dist/types/src/babel/core/get-descriptive-name.d.ts.map +1 -0
  16. package/dist/types/src/babel/core/get-foreign-bindings.d.ts +4 -0
  17. package/dist/types/src/babel/core/get-foreign-bindings.d.ts.map +1 -0
  18. package/dist/types/src/babel/core/get-hmr-decline-call.d.ts +4 -0
  19. package/dist/types/src/babel/core/get-hmr-decline-call.d.ts.map +1 -0
  20. package/dist/types/src/babel/core/get-hot-identifier.d.ts +4 -0
  21. package/dist/types/src/babel/core/get-hot-identifier.d.ts.map +1 -0
  22. package/dist/types/src/babel/core/get-import-identifier.d.ts +5 -0
  23. package/dist/types/src/babel/core/get-import-identifier.d.ts.map +1 -0
  24. package/dist/types/src/babel/core/get-root-statement-path.d.ts +3 -0
  25. package/dist/types/src/babel/core/get-root-statement-path.d.ts.map +1 -0
  26. package/dist/types/src/babel/core/get-statement-path.d.ts +3 -0
  27. package/dist/types/src/babel/core/get-statement-path.d.ts.map +1 -0
  28. package/dist/types/src/babel/core/get-vite-hmr-requirement.d.ts +4 -0
  29. package/dist/types/src/babel/core/get-vite-hmr-requirement.d.ts.map +1 -0
  30. package/dist/types/src/babel/core/is-valid-callee.d.ts +5 -0
  31. package/dist/types/src/babel/core/is-valid-callee.d.ts.map +1 -0
  32. package/dist/types/src/babel/core/register-import-specifiers.d.ts +5 -0
  33. package/dist/types/src/babel/core/register-import-specifiers.d.ts.map +1 -0
  34. package/dist/types/src/babel/core/transform-jsx.d.ts +4 -0
  35. package/dist/types/src/babel/core/transform-jsx.d.ts.map +1 -0
  36. package/dist/types/src/babel/core/types.d.ts +40 -0
  37. package/dist/types/src/babel/core/types.d.ts.map +1 -0
  38. package/dist/types/src/babel/core/unwrap.d.ts +11 -0
  39. package/dist/types/src/babel/core/unwrap.d.ts.map +1 -0
  40. package/dist/types/src/babel/core/xxhash32.d.ts +7 -0
  41. package/dist/types/src/babel/core/xxhash32.d.ts.map +1 -0
  42. package/dist/types/src/babel/index.d.ts +2 -25
  43. package/dist/types/src/babel/index.d.ts.map +1 -1
  44. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import * as t from '@babel/types';
2
+ export declare function isComponentishName(name: string): boolean;
3
+ export declare function getImportSpecifierName(specifier: t.ImportSpecifier): string;
4
+ //# sourceMappingURL=checks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checks.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/checks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAKlC,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,WAE9C;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,CAAC,CAAC,eAAe,GAAG,MAAM,CAK3E"}
@@ -0,0 +1,8 @@
1
+ import type { ImportDefinition, ImportIdentifierSpecifier } from './types';
2
+ export declare const IMPORT_REGISTRY: ImportDefinition;
3
+ export declare const IMPORT_REFRESH: ImportDefinition;
4
+ export declare const IMPORT_COMPONENT: ImportDefinition;
5
+ export declare const IMPORT_CONTEXT: ImportDefinition;
6
+ export declare const IMPORT_DECLINE: ImportDefinition;
7
+ export declare const IMPORT_SPECIFIERS: ImportIdentifierSpecifier[];
8
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAM3E,eAAO,MAAM,eAAe,EAAE,gBAI7B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,gBAI5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,gBAI9B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,gBAI5B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,gBAI5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,yBAAyB,EAyBxD,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { StateContext } from './types';
2
+ import type * as babel from '@babel/core';
3
+ import * as t from '@babel/types';
4
+ export declare function createRegistry(state: StateContext, path: babel.NodePath): t.Identifier;
5
+ //# sourceMappingURL=create-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-registry.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/create-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AASlC,wBAAgB,cAAc,CAC5B,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,KAAK,CAAC,QAAQ,GACnB,CAAC,CAAC,UAAU,CAoCd"}
@@ -0,0 +1,4 @@
1
+ import type * as babel from '@babel/core';
2
+ import * as t from '@babel/types';
3
+ export declare function generateUniqueName(path: babel.NodePath, name: string): t.Identifier;
4
+ //# sourceMappingURL=generate-unique-name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-unique-name.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/generate-unique-name.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,KAAK,CAAC,QAAQ,EACpB,IAAI,EAAE,MAAM,GACX,CAAC,CAAC,UAAU,CAkBd"}
@@ -0,0 +1,3 @@
1
+ import type * as t from '@babel/types';
2
+ export declare function generateCode(node: t.Node): string;
3
+ //# sourceMappingURL=generator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/generator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AAUvC,wBAAgB,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,GAAG,MAAM,CAEjD"}
@@ -0,0 +1,3 @@
1
+ import type * as babel from '@babel/core';
2
+ export declare function getDescriptiveName(path: babel.NodePath, defaultName: string): string;
3
+ //# sourceMappingURL=get-descriptive-name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-descriptive-name.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-descriptive-name.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAE1C,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,KAAK,CAAC,QAAQ,EACpB,WAAW,EAAE,MAAM,GAClB,MAAM,CAoCR"}
@@ -0,0 +1,4 @@
1
+ import * as t from '@babel/types';
2
+ import type * as babel from '@babel/core';
3
+ export declare function getForeignBindings(path: babel.NodePath): t.Identifier[];
4
+ //# sourceMappingURL=get-foreign-bindings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-foreign-bindings.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-foreign-bindings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AA8B1C,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,UAAU,EAAE,CAiBvE"}
@@ -0,0 +1,4 @@
1
+ import type * as babel from '@babel/core';
2
+ import type { StateContext } from './types';
3
+ export declare function getHMRDeclineCall(state: StateContext, path: babel.NodePath): babel.types.IfStatement;
4
+ //# sourceMappingURL=get-hmr-decline-call.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-hmr-decline-call.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-hmr-decline-call.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAM5C,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,CAAC,QAAQ,2BAc1E"}
@@ -0,0 +1,4 @@
1
+ import type { StateContext } from './types';
2
+ import * as t from '@babel/types';
3
+ export declare function getHotIdentifier(state: StateContext): t.MemberExpression;
4
+ //# sourceMappingURL=get-hot-identifier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-hot-identifier.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-hot-identifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,YAAY,GAAG,CAAC,CAAC,gBAAgB,CAqBxE"}
@@ -0,0 +1,5 @@
1
+ import type * as babel from '@babel/core';
2
+ import type * as t from '@babel/types';
3
+ import type { ImportDefinition, StateContext } from './types';
4
+ export declare function getImportIdentifier(state: StateContext, path: babel.NodePath, registration: ImportDefinition): t.Identifier;
5
+ //# sourceMappingURL=get-import-identifier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-import-identifier.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-import-identifier.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE9D,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,KAAK,CAAC,QAAQ,EACpB,YAAY,EAAE,gBAAgB,GAC7B,CAAC,CAAC,UAAU,CAad"}
@@ -0,0 +1,3 @@
1
+ import type * as babel from '@babel/core';
2
+ export declare function getRootStatementPath(path: babel.NodePath): babel.NodePath;
3
+ //# sourceMappingURL=get-root-statement-path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-root-statement-path.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-root-statement-path.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAG1C,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAUzE"}
@@ -0,0 +1,3 @@
1
+ import type * as babel from '@babel/core';
2
+ export declare function getStatementPath(path: babel.NodePath): babel.NodePath | null;
3
+ //# sourceMappingURL=get-statement-path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-statement-path.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-statement-path.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAG1C,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,GAAG,IAAI,CAQ5E"}
@@ -0,0 +1,4 @@
1
+ import type { StateContext } from './types';
2
+ import * as t from '@babel/types';
3
+ export declare function generateViteHMRRequirement(state: StateContext, statements: t.Statement[], pathToHot: t.Expression): void;
4
+ //# sourceMappingURL=get-vite-hmr-requirement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-vite-hmr-requirement.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-vite-hmr-requirement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,YAAY,EACnB,UAAU,EAAE,CAAC,CAAC,SAAS,EAAE,EACzB,SAAS,EAAE,CAAC,CAAC,UAAU,QAaxB"}
@@ -0,0 +1,5 @@
1
+ import type { ImportIdentifierType, StateContext } from './types';
2
+ import type * as babel from '@babel/core';
3
+ import * as t from '@babel/types';
4
+ export declare function isValidCallee(state: StateContext, path: babel.NodePath, { callee }: t.CallExpression, target: ImportIdentifierType): boolean;
5
+ //# sourceMappingURL=is-valid-callee.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-valid-callee.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/is-valid-callee.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,oBAAoB,EACpB,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AA8DlC,wBAAgB,aAAa,CAC3B,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,KAAK,CAAC,QAAQ,EACpB,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,cAAc,EAC5B,MAAM,EAAE,oBAAoB,WAe7B"}
@@ -0,0 +1,5 @@
1
+ import type { ImportIdentifierSpecifier, StateContext } from './types';
2
+ import * as t from '@babel/types';
3
+ import type * as babel from '@babel/core';
4
+ export declare function registerImportSpecifiers(state: StateContext, path: babel.NodePath<t.ImportDeclaration>, definitions: ImportIdentifierSpecifier[]): void;
5
+ //# sourceMappingURL=register-import-specifiers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-import-specifiers.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/register-import-specifiers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAmC1C,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,EACzC,WAAW,EAAE,yBAAyB,EAAE,QAUzC"}
@@ -0,0 +1,4 @@
1
+ import * as t from '@babel/types';
2
+ import type * as babel from '@babel/core';
3
+ export declare function transformJSX(path: babel.NodePath<t.JSXElement | t.JSXFragment>): void;
4
+ //# sourceMappingURL=transform-jsx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transform-jsx.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/transform-jsx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAyP1C,wBAAgB,YAAY,CAC1B,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,WAAW,CAAC,GACjD,IAAI,CA0DN"}
@@ -0,0 +1,40 @@
1
+ import type * as t from '@babel/types';
2
+ import type { RuntimeType } from '../../shared/types';
3
+ export interface NamedImportDefinition {
4
+ kind: 'named';
5
+ name: string;
6
+ source: string;
7
+ }
8
+ export interface DefaultImportDefinition {
9
+ kind: 'default';
10
+ source: string;
11
+ }
12
+ export type ImportDefinition = DefaultImportDefinition | NamedImportDefinition;
13
+ export interface Options {
14
+ granular?: boolean;
15
+ bundler?: RuntimeType;
16
+ fixRender?: boolean;
17
+ imports?: {
18
+ createContext: ImportDefinition[];
19
+ render: ImportDefinition[];
20
+ };
21
+ }
22
+ export type ImportIdentifierType = 'render' | 'createContext';
23
+ export interface ImportIdentifierSpecifier {
24
+ type: ImportIdentifierType;
25
+ definition: ImportDefinition;
26
+ }
27
+ export interface StateContext {
28
+ granular: boolean;
29
+ opts: Options;
30
+ specifiers: ImportIdentifierSpecifier[];
31
+ imports: Map<string, t.Identifier>;
32
+ registrations: {
33
+ identifiers: Map<t.Identifier, ImportIdentifierSpecifier>;
34
+ namespaces: Map<t.Identifier, ImportIdentifierSpecifier[]>;
35
+ };
36
+ filename: string | undefined;
37
+ bundler: RuntimeType;
38
+ fixRender: boolean;
39
+ }
40
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,gBAAgB,GAAG,uBAAuB,GAAG,qBAAqB,CAAC;AAE/E,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE;QACR,aAAa,EAAE,gBAAgB,EAAE,CAAC;QAClC,MAAM,EAAE,gBAAgB,EAAE,CAAC;KAC5B,CAAC;CACH;AAED,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,eAAe,CAAC;AAE9D,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,yBAAyB,EAAE,CAAC;IACxC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC;IACnC,aAAa,EAAE;QACb,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,yBAAyB,CAAC,CAAC;QAC1D,UAAU,EAAE,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,yBAAyB,EAAE,CAAC,CAAC;KAC5D,CAAC;IACF,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAE,WAAW,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;CACpB"}
@@ -0,0 +1,11 @@
1
+ import type * as babel from '@babel/core';
2
+ import type * as t from '@babel/types';
3
+ type TypeFilter<V extends t.Node> = (node: t.Node) => node is V;
4
+ export declare function isPathValid<V extends t.Node>(path: unknown, key: TypeFilter<V>): path is babel.NodePath<V>;
5
+ export type NestedExpression = t.ParenthesizedExpression | t.TypeCastExpression | t.TSAsExpression | t.TSSatisfiesExpression | t.TSNonNullExpression | t.TSInstantiationExpression | t.TSTypeAssertion;
6
+ export declare function isNestedExpression(node: t.Node): node is NestedExpression;
7
+ type TypeCheck<K> = K extends TypeFilter<infer U> ? U : never;
8
+ export declare function unwrapNode<K extends (value: t.Node) => boolean>(node: t.Node, key: K): TypeCheck<K> | undefined;
9
+ export declare function unwrapPath<V extends t.Node>(path: unknown, key: TypeFilter<V>): babel.NodePath<V> | undefined;
10
+ export {};
11
+ //# sourceMappingURL=unwrap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unwrap.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/unwrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AAEvC,KAAK,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,CAAC;AAEhE,wBAAgB,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,EAC1C,IAAI,EAAE,OAAO,EACb,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,GACjB,IAAI,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAE3B;AAED,MAAM,MAAM,gBAAgB,GACxB,CAAC,CAAC,uBAAuB,GACzB,CAAC,CAAC,kBAAkB,GACpB,CAAC,CAAC,cAAc,GAChB,CAAC,CAAC,qBAAqB,GACvB,CAAC,CAAC,mBAAmB,GACrB,CAAC,CAAC,yBAAyB,GAC3B,CAAC,CAAC,eAAe,CAAC;AAEtB,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,GAAG,IAAI,IAAI,gBAAgB,CAazE;AAED,KAAK,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,UAAU,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAE9D,wBAAgB,UAAU,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,KAAK,OAAO,EAC7D,IAAI,EAAE,CAAC,CAAC,IAAI,EACZ,GAAG,EAAE,CAAC,GACL,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,CAQ1B;AAED,wBAAgB,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,EACzC,IAAI,EAAE,OAAO,EACb,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,GACjB,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,SAAS,CAQ/B"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ *
3
+ * @param buffer - byte array or string
4
+ * @param seed - optional seed (32-bit unsigned);
5
+ */
6
+ export declare function xxHash32(buffer: Uint8Array | string, seed?: number): number;
7
+ //# sourceMappingURL=xxhash32.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xxhash32.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/xxhash32.ts"],"names":[],"mappings":"AAiCA;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,EAAE,IAAI,SAAI,GAAG,MAAM,CAqKtE"}
@@ -1,31 +1,8 @@
1
1
  import type * as babel from '@babel/core';
2
- import * as t from '@babel/types';
3
- import type { RuntimeType } from '../shared/types';
4
- interface Options {
5
- bundler?: RuntimeType;
6
- fixRender?: boolean;
7
- imports?: ImportIdentity[];
8
- }
9
- type ImportHook = Map<string, t.Identifier>;
10
- interface ImportIdentifiers {
11
- identifiers: Map<t.Identifier, ImportIdentity>;
12
- namespaces: Map<t.Identifier, ImportIdentity[]>;
13
- }
2
+ import type { Options } from './core/types';
14
3
  interface State extends babel.PluginPass {
15
- hooks: ImportHook;
16
4
  opts: Options;
17
- processed: boolean;
18
- granular: boolean;
19
- registrations: ImportIdentifiers;
20
- fixRender?: boolean;
21
- imports: ImportIdentity[];
22
- }
23
- interface ImportIdentity {
24
- name: string;
25
- source: string;
26
- kind: 'named' | 'default';
27
- type: 'createContext' | 'render';
28
5
  }
6
+ export type { Options };
29
7
  export default function solidRefreshPlugin(): babel.PluginObj<State>;
30
- export {};
31
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/babel/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAIlC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAgBnD,UAAU,OAAO;IACf,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;CAC5B;AAED,KAAK,UAAU,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC;AAE5C,UAAU,iBAAiB;IACzB,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IAC/C,UAAU,EAAE,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,cAAc,EAAE,CAAC,CAAC;CACjD;AAED,UAAU,KAAM,SAAQ,KAAK,CAAC,UAAU;IACtC,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,iBAAiB,CAAC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B;AAuMD,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1B,IAAI,EAAE,eAAe,GAAG,QAAQ,CAAC;CAClC;AAocD,MAAM,CAAC,OAAO,UAAU,kBAAkB,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAyEnE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/babel/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAI1C,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,cAAc,CAAC;AAqU1D,UAAU,KAAM,SAAQ,KAAK,CAAC,UAAU;IACtC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,YAAY,EAAE,OAAO,EAAE,CAAC;AAExB,MAAM,CAAC,OAAO,UAAU,kBAAkB,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAgDnE"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "description": "Universal HMR for SolidJS",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",
7
- "version": "0.6.3",
7
+ "version": "0.7.1",
8
8
  "homepage": "https://github.com/solidjs/solid-refresh#readme",
9
9
  "repository": {
10
10
  "type": "git",