@unleash/proxy-client-vue 0.1.6 → 1.0.0-beta.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.
package/README.md CHANGED
@@ -12,6 +12,8 @@ It is **not** compatible with the Unleash client API.
12
12
 
13
13
  ## Installation
14
14
 
15
+ Version 1 requires Vue 3.5.46 or later within Vue 3. Upgrade Vue before updating from the 0.x SDK.
16
+
15
17
  ```bash
16
18
  npm install @unleash/proxy-client-vue
17
19
  # or
@@ -219,3 +221,7 @@ watch(userId, () => {
219
221
  run()
220
222
  })
221
223
  ```
224
+
225
+ ## Development
226
+
227
+ Dependency install scripts are disabled (`ignore-scripts true` in `.yarnrc`) as supply-chain hardening. This also skips this repo's own `prepare` script on install, so run `yarn build` manually when you need a build. Publishing is unaffected: `npm publish` still runs `prepare`.
@@ -1,71 +1,21 @@
1
- import { UnleashClient } from 'unleash-proxy-client';
2
- declare const _sfc_main: import("vue").DefineComponent<{
3
- config: {
4
- type: null;
5
- required: false;
1
+ import { UnleashClient, IConfig } from 'unleash-proxy-client';
2
+ type __VLS_Props = {
3
+ config?: IConfig;
4
+ unleashClient?: UnleashClient;
5
+ startClient?: boolean;
6
+ };
7
+ declare const __VLS_template: () => {
8
+ __VLS_Slots: {
9
+ default?: (props: {}) => any;
6
10
  };
7
- unleashClient: {
8
- type: null;
9
- required: false;
11
+ };
12
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
13
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ type __VLS_WithSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
10
20
  };
11
- startClient: {
12
- type: BooleanConstructor;
13
- required: false;
14
- };
15
- }, {
16
- context: import("vue").ToRefs<{
17
- on: (event: string, args_0: Function, args_1: any) => UnleashClient | undefined;
18
- updateContext: (context: import("unleash-proxy-client").IMutableContext) => Promise<void>;
19
- isEnabled: (name: string) => boolean | undefined;
20
- getVariant: (name: string) => import("unleash-proxy-client").IVariant | undefined;
21
- client: {
22
- getAllToggles: () => import("unleash-proxy-client").IToggle[];
23
- isEnabled: (toggleName: string) => boolean;
24
- getVariant: (toggleName: string) => import("unleash-proxy-client").IVariant;
25
- updateToggles: () => Promise<void>;
26
- updateContext: (context: import("unleash-proxy-client").IMutableContext) => Promise<void>;
27
- getContext: () => {
28
- appName: string;
29
- environment?: string | undefined;
30
- userId?: string | undefined;
31
- sessionId?: string | undefined;
32
- remoteAddress?: string | undefined;
33
- currentTime?: string | undefined;
34
- properties?: {
35
- [key: string]: string;
36
- } | undefined;
37
- };
38
- setContextField: (field: string, value: string) => void;
39
- removeContextField: (field: string) => void;
40
- start: () => Promise<void>;
41
- stop: () => void;
42
- isReady: () => boolean;
43
- getError: () => any;
44
- sendMetrics: () => Promise<void>;
45
- on: (event: string, callback: Function, ctx?: any) => UnleashClient;
46
- once: (event: string, callback: Function, ctx?: any) => UnleashClient;
47
- emit: (event: string, ...args: any[]) => UnleashClient;
48
- off: (event: string, callback?: Function | undefined) => UnleashClient;
49
- } | undefined;
50
- flagsReady: boolean;
51
- flagsError: null;
52
- }>;
53
- start: () => void;
54
- update: (property: string, value: any) => void;
55
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
56
- config: {
57
- type: null;
58
- required: false;
59
- };
60
- unleashClient: {
61
- type: null;
62
- required: false;
63
- };
64
- startClient: {
65
- type: BooleanConstructor;
66
- required: false;
67
- };
68
- }>>, {
69
- startClient: boolean;
70
- }>;
71
- export default _sfc_main;
21
+ };