@shipstatic/ship 0.4.6 → 0.4.7
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 +7 -0
- package/dist/browser.d.ts +16 -0
- package/dist/browser.js +5 -5
- package/dist/browser.js.map +1 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -161,6 +161,13 @@ ship.domains.set('staging', { tags: ['prod', 'v2'] });
|
|
|
161
161
|
ship.domains.set('staging', {}); // throws validation error
|
|
162
162
|
```
|
|
163
163
|
|
|
164
|
+
**Domain format:** Domain names are FQDNs (Fully Qualified Domain Names). The SDK accepts any format (case-insensitive, Unicode) - the API handles normalization.
|
|
165
|
+
|
|
166
|
+
```typescript
|
|
167
|
+
ship.domains.set('Example.COM', { deployment: 'abc' }); // → normalized to 'example.com'
|
|
168
|
+
ship.domains.set('münchen.de', { deployment: 'abc' }); // → Unicode supported
|
|
169
|
+
```
|
|
170
|
+
|
|
164
171
|
### Events
|
|
165
172
|
|
|
166
173
|
```javascript
|
package/dist/browser.d.ts
CHANGED
|
@@ -264,9 +264,25 @@ interface DeploymentResourceContext extends ResourceContext {
|
|
|
264
264
|
clientDefaults?: ShipClientOptions;
|
|
265
265
|
hasAuth?: () => boolean;
|
|
266
266
|
}
|
|
267
|
+
/**
|
|
268
|
+
* Create deployment resource with all CRUD operations.
|
|
269
|
+
*/
|
|
267
270
|
declare function createDeploymentResource(ctx: DeploymentResourceContext): DeploymentResource;
|
|
271
|
+
/**
|
|
272
|
+
* Create domain resource with all CRUD operations.
|
|
273
|
+
*
|
|
274
|
+
* @remarks
|
|
275
|
+
* The `name` parameter in all methods is an FQDN (Fully Qualified Domain Name).
|
|
276
|
+
* The SDK does not validate or normalize domain names - the API handles all domain semantics.
|
|
277
|
+
*/
|
|
268
278
|
declare function createDomainResource(ctx: ResourceContext): DomainResource;
|
|
279
|
+
/**
|
|
280
|
+
* Create account resource (whoami functionality).
|
|
281
|
+
*/
|
|
269
282
|
declare function createAccountResource(ctx: ResourceContext): AccountResource;
|
|
283
|
+
/**
|
|
284
|
+
* Create token resource for managing deploy tokens.
|
|
285
|
+
*/
|
|
270
286
|
declare function createTokenResource(ctx: ResourceContext): TokenResource;
|
|
271
287
|
|
|
272
288
|
/**
|