@aws/nx-plugin 0.10.0 → 0.12.0

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.
@@ -18,9 +18,9 @@ export declare const VERSIONS: {
18
18
  readonly '@cloudscape-design/components': "^3.0.823";
19
19
  readonly '@cloudscape-design/global-styles': "^1.0.34";
20
20
  readonly '@tanstack/react-query': "^5.59.20";
21
- readonly '@trpc/react-query': "11.0.0-rc.700";
22
- readonly '@trpc/client': "11.0.0-rc.700";
23
- readonly '@trpc/server': "11.0.0-rc.700";
21
+ readonly '@trpc/tanstack-react-query': "11.0.0-rc.800";
22
+ readonly '@trpc/client': "11.0.0-rc.800";
23
+ readonly '@trpc/server': "11.0.0-rc.800";
24
24
  readonly '@types/node': "^22.13.1";
25
25
  readonly '@types/aws-lambda': "^8.10.145";
26
26
  readonly '@smithy/types': "^4.1.0";
@@ -44,5 +44,5 @@ export declare const VERSIONS: {
44
44
  * Add versions to the given dependencies
45
45
  */
46
46
  export declare const withVersions: (deps: (keyof typeof VERSIONS)[]) => {
47
- [k: string]: "^0.0.60" | "^2.166.0-alpha.0" | "^3.721.0" | "^2.11.0" | "^20.5.1" | "^1.99.7" | "^3.0.84" | "^3.0.823" | "^1.0.34" | "^5.59.20" | "11.0.0-rc.700" | "^22.13.1" | "^8.10.145" | "^4.1.0" | "^1.0.20" | "^2.166.0" | "^3.10.2" | "^10.4.2" | "^0.25.0" | "^5.2.2" | "^2.4.0" | "^3.1.0" | "^3.4.2" | "^3.2.0" | "^0.5.21" | "^4.19.2" | "^5.1.4" | "^3.23.8";
47
+ [k: string]: "^0.0.60" | "^2.166.0-alpha.0" | "^3.721.0" | "^2.11.0" | "^20.5.1" | "^1.99.7" | "^3.0.84" | "^3.0.823" | "^1.0.34" | "^5.59.20" | "11.0.0-rc.800" | "^22.13.1" | "^8.10.145" | "^4.1.0" | "^1.0.20" | "^2.166.0" | "^3.10.2" | "^10.4.2" | "^0.25.0" | "^5.2.2" | "^2.4.0" | "^3.1.0" | "^3.4.2" | "^3.2.0" | "^0.5.21" | "^4.19.2" | "^5.1.4" | "^3.23.8";
48
48
  };
@@ -21,9 +21,9 @@ exports.VERSIONS = {
21
21
  '@cloudscape-design/components': '^3.0.823',
22
22
  '@cloudscape-design/global-styles': '^1.0.34',
23
23
  '@tanstack/react-query': '^5.59.20',
24
- '@trpc/react-query': '11.0.0-rc.700',
25
- '@trpc/client': '11.0.0-rc.700',
26
- '@trpc/server': '11.0.0-rc.700',
24
+ '@trpc/tanstack-react-query': '11.0.0-rc.800',
25
+ '@trpc/client': '11.0.0-rc.800',
26
+ '@trpc/server': '11.0.0-rc.800',
27
27
  '@types/node': '^22.13.1',
28
28
  '@types/aws-lambda': '^8.10.145',
29
29
  '@smithy/types': '^4.1.0',
@@ -1 +1 @@
1
- {"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/nx-plugin/src/utils/versions.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,QAAQ,GAAG;IACtB,iCAAiC,EAAE,SAAS;IAC5C,yCAAyC,EAAE,kBAAkB;IAC7D,kCAAkC,EAAE,UAAU;IAC9C,+BAA+B,EAAE,UAAU;IAC3C,+CAA+C,EAAE,UAAU;IAC3D,+BAA+B,EAAE,SAAS;IAC1C,gCAAgC,EAAE,SAAS;IAC3C,+BAA+B,EAAE,SAAS;IAC1C,cAAc,EAAE,SAAS;IACzB,wBAAwB,EAAE,SAAS;IACnC,yBAAyB,EAAE,SAAS;IACpC,qCAAqC,EAAE,SAAS;IAChD,+BAA+B,EAAE,UAAU;IAC3C,kCAAkC,EAAE,SAAS;IAC7C,uBAAuB,EAAE,UAAU;IACnC,mBAAmB,EAAE,eAAe;IACpC,cAAc,EAAE,eAAe;IAC/B,cAAc,EAAE,eAAe;IAC/B,aAAa,EAAE,UAAU;IACzB,mBAAmB,EAAE,WAAW;IAChC,eAAe,EAAE,QAAQ;IACzB,SAAS,EAAE,SAAS;IACpB,SAAS,E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EAAE,UAAU;IACzB,mBAAmB,EAAE,WAAW;IAChC,eAAe,EAAE,QAAQ;IACzB,SAAS,EAAE,SAAS;IACpB,SAAS,EAAE,UAAU;IACrB,aAAa,EAAE,UAAU;IACzB,mBAAmB,EAAE,SAAS;IAC9B,UAAU,EAAE,SAAS;IACrB,OAAO,EAAE,SAAS;IAClB,wBAAwB,EAAE,QAAQ;IAClC,qBAAqB,EAAE,QAAQ;IAC/B,gBAAgB,EAAE,QAAQ;IAC1B,QAAQ,EAAE,QAAQ;IAClB,oBAAoB,EAAE,QAAQ;IAC9B,oBAAoB,EAAE,SAAS;IAC/B,GAAG,EAAE,SAAS;IACd,qBAAqB,EAAE,QAAQ;IAC/B,GAAG,EAAE,SAAS;CACN,CAAC;AACX;;GAEG;AACI,MAAM,YAAY,GAAG,CAAC,IAA+B,EAAE,EAAE,CAC9D,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,gBAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AADjD,QAAA,YAAY,gBACqC"}
@@ -1,75 +0,0 @@
1
- import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
2
- import { createTRPCReact } from '@trpc/react-query';
3
- import {
4
- httpBatchLink,
5
- httpLink,
6
- HTTPBatchLinkOptions,
7
- HTTPLinkOptions,
8
- splitLink,
9
- } from '@trpc/client';
10
- import {
11
- useState,
12
- FC,
13
- createContext,
14
- useMemo,
15
- PropsWithChildren,
16
- } from 'react';
17
- <% if(auth === 'IAM') { %> import { useSigV4 } from '../../hooks/useSigV4'; <% } %>
18
- import { AnyTRPCRouter } from '@trpc/server';
19
-
20
- export interface IsolatedTrpcClientProviderProps extends PropsWithChildren {
21
- readonly apiUrl: string;
22
- }
23
-
24
- export const createIsolatedTrpcClientProvider = <
25
- TAppRouter extends AnyTRPCRouter,
26
- TContext
27
- >() => {
28
- const isolatedTrpcContext = createContext(null as any);
29
- const trpc = createTRPCReact<TAppRouter, TContext>({
30
- context: isolatedTrpcContext,
31
- });
32
-
33
- const IsolatedTrpcClientProvider: FC<IsolatedTrpcClientProviderProps> = ({
34
- apiUrl,
35
- children,
36
- }) => {
37
- const [queryClient] = useState(() => new QueryClient());
38
- <% if(auth === 'IAM') { %> const sigv4Client = useSigV4(); <% } %>
39
-
40
- const trpcClient = useMemo(() => {
41
- const linkOptions: HTTPLinkOptions<any> & HTTPBatchLinkOptions<any> = {
42
- url: apiUrl,
43
- <% if(auth === 'IAM') { %> fetch: sigv4Client <% } %>
44
- };
45
-
46
- // @ts-expect-error type errors due to unknown concrete AppRouter
47
- return trpc.createClient({
48
- links: [
49
- splitLink({
50
- condition(op) {
51
- return op.context.skipBatch === true;
52
- },
53
- true: httpLink(linkOptions),
54
- false: httpBatchLink(linkOptions),
55
- }),
56
- ],
57
- });
58
- }, [apiUrl<% if(auth === 'IAM') { %>, sigv4Client<% } %>]);
59
-
60
- return (
61
- // @ts-expect-error type errors due to unknown concrete AppRouter
62
- <trpc.Provider client={trpcClient} queryClient={queryClient}>
63
- <QueryClientProvider client={queryClient}>
64
- {children}
65
- </QueryClientProvider>
66
- {/* @ts-expect-error type errors due to unknown concrete AppRouter */}
67
- </trpc.Provider>
68
- );
69
- };
70
-
71
- return {
72
- trpc,
73
- Provider: IsolatedTrpcClientProvider,
74
- };
75
- };