@atproto/syntax 0.2.1-next.0 → 0.2.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/CHANGELOG.md CHANGED
@@ -1,13 +1,11 @@
1
1
  # @atproto/syntax
2
2
 
3
- ## 0.2.1-next.0
3
+ ## 0.2.1
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Overhaul of package builds, no longer bundling deps.
8
-
9
- - Updated dependencies []:
10
- - @atproto/common-web@0.2.4-next.0
7
+ - Updated dependencies [[`4eaadc0ac`](https://github.com/bluesky-social/atproto/commit/4eaadc0acb6b73b9745dd7a2b929d02e58083ab0)]:
8
+ - @atproto/common-web@0.2.4
11
9
 
12
10
  ## 0.2.0
13
11
 
@@ -0,0 +1 @@
1
+ module.exports = require('../../babel.config.js')
package/build.js ADDED
@@ -0,0 +1,22 @@
1
+ const pkgJson = require('@npmcli/package-json')
2
+ const { nodeExternalsPlugin } = require('esbuild-node-externals')
3
+
4
+ const buildShallow =
5
+ process.argv.includes('--shallow') || process.env.ATP_BUILD_SHALLOW === 'true'
6
+
7
+ if (process.argv.includes('--update-main-to-dist')) {
8
+ return pkgJson
9
+ .load(__dirname)
10
+ .then((pkg) => pkg.update({ main: 'dist/index.js' }))
11
+ .then((pkg) => pkg.save())
12
+ }
13
+
14
+ require('esbuild').build({
15
+ logLevel: 'info',
16
+ entryPoints: ['src/index.ts'],
17
+ bundle: true,
18
+ sourcemap: true,
19
+ outdir: 'dist',
20
+ platform: 'node',
21
+ plugins: buildShallow ? [nodeExternalsPlugin()] : [],
22
+ })
package/dist/aturi.d.ts CHANGED
@@ -20,4 +20,3 @@ export declare class AtUri {
20
20
  get href(): string;
21
21
  toString(): string;
22
22
  }
23
- //# sourceMappingURL=aturi.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export declare const ensureValidAtUri: (uri: string) => void;
2
2
  export declare const ensureValidAtUriRegex: (uri: string) => void;
3
- //# sourceMappingURL=aturi_validation.d.ts.map
@@ -4,4 +4,3 @@ export declare const normalizeDatetime: (dtStr: string) => string;
4
4
  export declare const normalizeDatetimeAlways: (dtStr: string) => string;
5
5
  export declare class InvalidDatetimeError extends Error {
6
6
  }
7
- //# sourceMappingURL=datetime.d.ts.map
package/dist/did.d.ts CHANGED
@@ -2,4 +2,3 @@ export declare const ensureValidDid: (did: string) => void;
2
2
  export declare const ensureValidDidRegex: (did: string) => void;
3
3
  export declare class InvalidDidError extends Error {
4
4
  }
5
- //# sourceMappingURL=did.d.ts.map
package/dist/handle.d.ts CHANGED
@@ -14,4 +14,3 @@ export declare class UnsupportedDomainError extends Error {
14
14
  }
15
15
  export declare class DisallowedDomainError extends Error {
16
16
  }
17
- //# sourceMappingURL=handle.d.ts.map
package/dist/index.d.ts CHANGED
@@ -5,4 +5,3 @@ export * from './aturi';
5
5
  export * from './tid';
6
6
  export * from './recordkey';
7
7
  export * from './datetime';
8
- //# sourceMappingURL=index.d.ts.map