Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jeffijoe/typesync
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.10.0
Choose a base ref
...
head repository: jeffijoe/typesync
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.11.0
Choose a head ref
  • 4 commits
  • 16 files changed
  • 1 contributor

Commits on Apr 30, 2023

  1. Verified

    This commit was signed with the committer’s verified signature.
    renovate-bot Mend Renovate
    Copy the full SHA
    7f73f00 View commit details
  2. feat: use npm-registry-fetch

    This will get us authentication and registry selection for free.
    
    Closes #89 and #67
    jeffijoe committed Apr 30, 2023
    Copy the full SHA
    4729e49 View commit details
  3. Merge pull request #97 from jeffijoe/fix/syncing

    Make TypeSync work without the typespublisher resource + use `npm-registry-fetch`
    jeffijoe authored Apr 30, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e223fb6 View commit details
  4. 0.11.0

    jeffijoe committed Apr 30, 2023
    Copy the full SHA
    f2c43ef View commit details
Showing with 2,503 additions and 1,167 deletions.
  1. +12 −0 CHANGELOG.md
  2. +1 −3 README.md
  3. +2,350 −868 package-lock.json
  4. +14 −13 package.json
  5. +8 −1 src/__tests__/package-source.test.ts
  6. +0 −12 src/__tests__/type-definition-source.test.ts
  7. +34 −48 src/__tests__/type-syncer.test.ts
  8. +8 −0 src/__tests__/util.test.ts
  9. +10 −37 src/cli.ts
  10. +0 −1 src/index.ts
  11. +0 −30 src/npm-client.ts
  12. +18 −2 src/package-source.ts
  13. +0 −37 src/type-definition-source.ts
  14. +36 −96 src/type-syncer.ts
  15. +6 −19 src/types.ts
  16. +6 −0 src/util.ts
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# v0.11.0

- Use `npm-registry-fetch` instead of `axios` for fetching package info from npm.
- Microsoft removed their `search-index` resource, so will check npm directly.
- Remove the "remove unused typings" feature as it relied on the information in the Microsoft index and isn't easily available elsewhere for the time being.
- Update packages.

# v0.10.0

- Update packages
- [#94](https://github.com/jeffijoe/typesync/issues/94): Fix diffing, [@oreshinya](https://github.com/oreshinya)

# v0.9.2

- Update packages
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ To ignore certain sections, you can use the `--ignoredeps=` flag. For example, t
To ignore certain packages, you can use the `--ignorepackages=` flag. For example, to ignore `nodemon`, use `--ignorepackages=nodemon`.
To ignore multiple, comma-separate them, like this: `--ignorepackages=nodemon,whatever` (ignores `nodemon` and `whatever`).

## Use config file
## Using a config file

Alternatively, you can use a TypeSync config file: `.typesyncrc` or a `"typesync"` section in your `package.json`. TypeSync will **automatically** search for configuration files. See [cosmiconfig][cosmiconfig] for details.

@@ -122,8 +122,6 @@ TypeSync will try to respect semver parity for the code and typings packages, an

If you use a Semver `^` or `~` for a package, the same prefix will be used for the typings package. If you pin to an exact version (`"some-package": "1.2.3"`), no prefix will be written.

If a typings package in your `package.json` is not used (has no corresponding code package in your `package.json` and does not contribute to the global namespace), TypeSync will automatically remove it.

# Monorepos

TypeSync added support for monorepos in v0.4.0. It will look at `packages`/`workspaces` globs in `package.json` and sync every matching file in one fell swoop.
Loading