Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert @redwoodjs/web to ESM/CJS dual package #10868

Merged
merged 73 commits into from
Jun 28, 2024

Commits on Jun 7, 2024

  1. Convert tsc bin to mts

    dac09 committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    4e003b1 View commit details
    Browse the repository at this point in the history
  2. Add build.mts

    dac09 committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    794466b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    169d622 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    669c595 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bf128bb View commit details
    Browse the repository at this point in the history
  6. Add react imports to everything that has JSX

    Rename files without JSX files to just ts
    dac09 committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    db802ad View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    40b4b7b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    209cbe6 View commit details
    Browse the repository at this point in the history
  9. Update build.mts with comments

    dac09 committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    88877ca View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

  1. Merge branch 'main' of github.com:redwoodjs/redwood into chore/web-pa…

    …ckage-cjsonly-new-build
    
    * 'main' of github.com:redwoodjs/redwood: (66 commits)
      chore(testing dbAuth): Add "yes" prompt testing for WebAuthn (redwoodjs#10823)
      chore(testing dbAuth): Mock console.log to silence test output (redwoodjs#10821)
      chore(testing dbAuth): Remove duplicated tests (redwoodjs#10822)
      chore(testing dbAuth): Remove outdated code (redwoodjs#10820)
      chore(testing dbAuth): Consistent naming and fix blue squiggles (redwoodjs#10819)
      chore(testing dbAuth): provide mock implementations (redwoodjs#10818)
      feat(dbAuth): Only suggest dbAuth setup if needed (redwoodjs#10793)
      chore(dbAuth): Fix test for webauthn prompt in `g dbAuth` (redwoodjs#10814)
      fix(dbAuth): Print the correct "post message" after generation (redwoodjs#10813)
      fix(dbauth): Fix spacing issue in task titles (redwoodjs#10811)
      deps(docs): update braces package (redwoodjs#10809)
      chore(deps): bump braces from 3.0.2 to 3.0.3 in /tasks/check (redwoodjs#10808)
      chore(deps): update yarn to v4.3.0 (redwoodjs#10801)
      chore(deps): update dependency tsx to v4.15.2 (redwoodjs#10800)
      chore(deps): update dependency @clerk/types to v3.65.2 (redwoodjs#10795)
      chore(deps): update dependency firebase to v10.12.2 (redwoodjs#10802)
      chore(deps): update dependency rollup to v4.18.0 (redwoodjs#10799)
      chore(deps): update dependency jsdom to v24.1.0 (redwoodjs#10798)
      chore(deps): update dependency @types/vscode to v1.90.0 (redwoodjs#10796)
      chore(deps): update dependency @clerk/clerk-react to v4.32.2 (redwoodjs#10794)
      ...
    dac09 committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    d853319 View commit details
    Browse the repository at this point in the history
  2. Update comments

    dac09 committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    5c2e4f9 View commit details
    Browse the repository at this point in the history
  3. Bump tsx version

    dac09 committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    58e08c7 View commit details
    Browse the repository at this point in the history
  4. Handle webpack entrry

    dac09 committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    92d4d31 View commit details
    Browse the repository at this point in the history
  5. Add react to webpack entry

    dac09 committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    8561805 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1cbc42d View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. Configuration menu
    Copy the full SHA
    c6eb4a7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    517fed0 View commit details
    Browse the repository at this point in the history
  3. Just do export default

    dac09 committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    ea1be4c View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2024

  1. Configuration menu
    Copy the full SHA
    2db4ec9 View commit details
    Browse the repository at this point in the history
  2. Update yarn.lock

    dac09 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    5e43bde View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f8c34e2 View commit details
    Browse the repository at this point in the history
  4. Set exports and type module

    + Still use cjs bins
    + Build esm
    + Update yarn.lock so new bins are picked up
    dac09 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    ccf9954 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    517208e View commit details
    Browse the repository at this point in the history
  6. Remove module augmentation syntax for asset imports as not supported …

    …in ESM packages 🤷
    dac09 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    f451c30 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. cjsInterop - update settings to not transform auth or web. Why was au…

    …th being transformed?
    dac09 committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    f8b6edb View commit details
    Browse the repository at this point in the history
  2. Remove babel from vitest config

    dac09 committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    152cd80 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    619d8d5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    301fb0d View commit details
    Browse the repository at this point in the history
  5. Type ovverride imports

    dac09 committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    9a1cba3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8ebc02f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a8ae316 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2024

  1. Configuration menu
    Copy the full SHA
    a20357f View commit details
    Browse the repository at this point in the history
  2. Use import * for helmet

    dac09 committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    80487d3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    78f3f78 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e756770 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    42899f8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7a10a67 View commit details
    Browse the repository at this point in the history
  7. Update path for apollo import proxy

    (not sure if necessary)
    dac09 committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    eb8ef72 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a1d9015 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2024

  1. Configuration menu
    Copy the full SHA
    ae872d5 View commit details
    Browse the repository at this point in the history
  2. Use await import

    dac09 committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    02f9275 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    360645c View commit details
    Browse the repository at this point in the history
  4. Merge branch 'main' of github.com:redwoodjs/redwood into chore/p2-web…

    …-esm
    
    * 'main' of github.com:redwoodjs/redwood:
      fix(deps): update dependency prettier to v3.3.2 (redwoodjs#10852)
      fix(deps): update dependency vite to v5.3.1 (redwoodjs#10854)
      chore(esm/cjs): Build rwjs/web to cjs with new build system (redwoodjs#10826)
      feat(dbAuth): Automatically create User model in fresh projects (redwoodjs#10871)
      feat(dbAuth): Prompt to generate dbAuth pages (redwoodjs#10865)
    dac09 committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    0459c6c View commit details
    Browse the repository at this point in the history
  5. Update test path

    dac09 committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    15876ac View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ae30ea6 View commit details
    Browse the repository at this point in the history
  7. Add entry export field

    dac09 committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    78ed8fd View commit details
    Browse the repository at this point in the history
  8. Undo ServerINject change

    dac09 committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    ee48b97 View commit details
    Browse the repository at this point in the history
  9. Fix CJS issues with webpack

    dac09 committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    de2c3c2 View commit details
    Browse the repository at this point in the history
  10. Use ESM version of webpack entry

    Dont build CJS version
    dac09 committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    2e71a85 View commit details
    Browse the repository at this point in the history
  11. Use serverInject from exports

    dac09 committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    aacb89a View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    37186b2 View commit details
    Browse the repository at this point in the history
  13. Update prerender import

    dac09 committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    3a735ba View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    5f03763 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    b8cb183 View commit details
    Browse the repository at this point in the history
  16. Update comment

    dac09 committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    c32ce6b View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    75d53ba View commit details
    Browse the repository at this point in the history
  18. Map jest preset to CJS build

    dac09 committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    b82fc37 View commit details
    Browse the repository at this point in the history
  19. Reorder require and import

    dac09 committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    ddd33b0 View commit details
    Browse the repository at this point in the history
  20. Cleanup build.mts

    dac09 committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    a8fc727 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    0a8628f View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. Configuration menu
    Copy the full SHA
    9d4a794 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. Merge branch 'chore/p2-web-esm' of github.com:dac09/redwood into chor…

    …e/p2-web-esm
    
    * 'chore/p2-web-esm' of github.com:dac09/redwood:
      fix(deps): update graphqlcodegenerator monorepo (redwoodjs#10856)
    dac09 committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    96a8d40 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9b4118a View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2024

  1. Configuration menu
    Copy the full SHA
    028d2e7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    12ce12d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    af27666 View commit details
    Browse the repository at this point in the history
  4. Update cjsInterop comments

    dac09 committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    e679f12 View commit details
    Browse the repository at this point in the history
  5. Use vite client imports

    dac09 committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    9c210bf View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2024

  1. Merge branch 'main' of github.com:redwoodjs/redwood into chore/p2-web…

    …-esm
    
    * 'main' of github.com:redwoodjs/redwood:
      fix(deps): update dependency nodemailer to v6.9.14 (redwoodjs#10887)
    dac09 committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    d95c496 View commit details
    Browse the repository at this point in the history
  2. Import dts file specifically

    dac09 committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    35a8deb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9d06bc4 View commit details
    Browse the repository at this point in the history
  4. Dont polyfill for rsc builds

    dac09 committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    0313271 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c1ebecf View commit details
    Browse the repository at this point in the history